Import with #import "std/context_go".

Context :: struct
CancelFunc :: struct
Cancellation :: struct { value: Context; cancel: CancelFunc; }
Background :: () -> Context
Canceled :: () -> Error
DeadlineExceeded :: () -> Error
Done :: (value: Context) -> Any
WithCancel :: (value: Context) -> Cancellation
WithTimeout :: (value: Context, duration: clock.Duration) -> Cancellation
Cancel :: (callback: CancelFunc)

Source ↗ · All modules