Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FutureResponse ¶ added in v0.1.319
type FutureResponse struct { Err error Value interface{} }
FutureResponse ...
type PromiseResponse ¶ added in v0.1.256
type PromiseResponse[T any] struct { Future async.Future[T] // contains filtered or unexported fields }
PromiseResponse ...
func ExecuteAsync ¶ added in v0.1.256
func ExecuteAsync(f func() (interface{}, error)) *PromiseResponse[*FutureResponse]
ExecuteAsync returns a response that contains a future and a helper method to check if the future has been completed
func (*PromiseResponse[T]) IsComplete ¶ added in v0.1.256
func (s *PromiseResponse[T]) IsComplete() bool
IsComplete checks to see if a promise has been completed
Click to show internal directories.
Click to hide internal directories.