first commit
This commit is contained in:
12
core/schemas/context_native.go
Normal file
12
core/schemas/context_native.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user