Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) CompareAndSwap ¶
func (*Manager) NotifyOnStage ¶
NotifyOnStage returns a channel that will be closed when the specified stage has been reached.
type Stage ¶
type Stage string
const ( Init Stage = "Init" // The default stage of world Starting Stage = "Starting" // World is moved to this stage after StartGame() is called Recovering Stage = "Recovering" // World is moved to this stage when recoverFromChain() is called Ready Stage = "Ready" // World is moved to this stage when it's ready to start ticking Running Stage = "Running" // World is moved to this stage when Tick() is first called ShuttingDown Stage = "ShuttingDown" // World is moved to this stage when it received a shutdown signal ShutDown Stage = "ShutDown" // World is moved to this stage when it has successfully shutdown )
Click to show internal directories.
Click to hide internal directories.