| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.World.Defer
Synopsis
- defer :: MonadSystem w m => System a -> m ()
- flush :: System ()
- flushAsync :: System ()
- forkDefer :: System a -> System a
- runAfter :: MonadSystem w m => IO a -> (a -> System ()) -> m ()
- delay :: MonadSystem w m => Float -> System a -> m ()
Documentation
defer :: MonadSystem w m => System a -> m () Source #
Defer a System. This will put it in the current deferred queue which is typically flushed in-between scheduled systems.
This is useful for executing mutations in parallel systems.
You can manually flush the queue with flush.
flushAsync :: System () Source #
Flush the current list of deferred async commands.