indeedee

Crates.ioindeedee
lib.rsindeedee
version0.1.0
sourcesrc
created_at2022-07-23 02:36:43.94349
updated_at2022-07-23 02:36:43.94349
descriptionDistribute iterated work over multiple frames
homepage
repositoryhttps://www.github.com/gamma-delta/indeedee
max_upload_size
id631242
size4,791
petrak@ (gamma-delta)

documentation

README

Indeedee

Utilities for making progress bars and distributing work across frames. The target use case is for things like world generation or loading assets.

The core of this crate is the ProgressiveWaiter struct, which takes an iterator and a state running over it. Then, you query the waiter with query, passing a maximum amount of time you allow the iterator to run. The ProgressiveWaiter will consume as many elements out of the iterator as it can into the state, and return whether it's done or not.


This crate is built alongside and for my W.I.P. roguelike Foxfire.

Commit count: 0

cargo fmt