Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendAsyncJob ¶
func AppendAsyncJob(group string, routine AsyncRoutine, callback AsyncCallback)
AppendAsyncJob append an async job to be executed asyncly (not in the game goroutine)
Types ¶
type AsyncCallback ¶
type AsyncCallback func(res interface{}, err error)
AsyncCallback is a function which will be called after async job is finished with result and error
type AsyncRoutine ¶
type AsyncRoutine func() (res interface{}, err error)
AsyncRoutine is a function that will be executed in the async goroutine and its result and error will be passed to AsyncCallback
Click to show internal directories.
Click to hide internal directories.