Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Future ¶
type Future[T any] interface { // Wait for the future to resolve. Returns the context cause if it's canceled. Wait(ctx context.Context) (T, error) // Sync checks the future's result immediately, returning false if not yet available. Sync() (T, error, bool) }
Future represents some future result.
Click to show internal directories.
Click to hide internal directories.