async

package
v0.1.275-herb-middlewa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWithPromiseAsync

func ExecuteWithPromiseAsync(fn func(async.Promise)) async.Future

ExecuteWithPromiseAsync ...

Types

type AsyncResponse

type AsyncResponse struct {
	Message string
	Error   error
}

AsyncResponse ...

type PromiseResponse added in v0.1.256

type PromiseResponse struct {
	Future async.Future
	// contains filtered or unexported fields
}

PromiseResponse ...

func ExecuteAsync added in v0.1.256

func ExecuteAsync(f func() (interface{}, error)) *PromiseResponse

ExecuteAsync returns a response that contains a future and a helper method to check if the future has been completed

func (*PromiseResponse) IsComplete added in v0.1.256

func (s *PromiseResponse) IsComplete() bool

IsComplete checks to see if a promise has been completed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL