aikar / TaskChain

TaskChain Control Flow framework. Helps facilitate running tasks on an application's "Main Thread" (such as a game), and tasks off the main (async).
https://taskchain.emc.gs
MIT License
203 stars 38 forks source link

Queue API #8

Open aikar opened 8 years ago

aikar commented 8 years ago

Provide an API that can take a queue, and provide a queue processor.

Sync option: parameters to configure # of elements of the queue to process per run, and how long to wait in between each process of the queue.

game units should use the game scheduler to advance to next run and rl time units should use async delays to control for that (but return to sync)

Async option should also provide optional concurrency level, and delays.