//
pkg.gl
Category
github.com/xiaonanln/goworld
engine
post
package
0.1.6
Repository:
https://github.com/xiaonanln/goworld.git
Documentation:
pkg.go.dev
Versions
1
Dependencies
2
Dependents
50
Files
33 SLOC
#
Functions
Post
Post a callback which will be executed when other things are done in the main game routine Post might be called from other goroutine, so we use a lock to protect the data.
Tick
Tick is called by the main game routine to run all posted functions.
#
Type aliases
PostCallback
PostCallback is the type of functions to be posted.