Files
bifrost/core/schemas/context_native.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

13 lines
322 B
Go

//go:build !tinygo && !wasm
package schemas
import "github.com/valyala/fasthttp"
// isNonCancellingContext returns true if the context is known to have
// a Done() channel that never closes (e.g., fasthttp.RequestCtx).
func isNonCancellingContext(parent any) bool {
_, ok := parent.(*fasthttp.RequestCtx)
return ok
}