context

Types from the Go package context (a library PocketBase builds on), as JavaScript sees them: they turn up as values of PocketBase's types and of hook events.

context.Context

A Context carries a deadline, a cancellation signal, and other values across API boundaries.

Context's methods may be called by multiple goroutines simultaneously.

Member Type
deadline() (): [time.Time, boolean] Deadline returns the time when work done on behalf of this context should be canceled. Deadline returns ok==false when no deadline is set. Successive calls to Deadline return the same results.
done() (): undefined Done returns a channel that's closed when work done on behalf of this context should be canceled. Done may return nil if this context can never be canceled. Successive calls to Done return the same value. The close of the Done channel may happen asynchronously, after the cancel function returns.
err() (): void If Done is not yet closed, Err returns nil. If Done is closed, Err returns a non-nil error explaining why: DeadlineExceeded if the context's deadline passed, or Canceled if the context was canceled for some other reason. After Err returns a non-nil error, successive calls to Err return the same error.
value() (key: any): any Value returns the value associated with this context for key, or nil if no value is associated with key. Successive calls to Value with the same key returns the same result.