#future #panic #resolution #unwrap #prototyping #attempt #nosleep

creepypasta

force the resolution of a future, or panic

1 stable release

1.0.0 Mar 14, 2020

#4 in #nosleep

MIT/Apache

3KB

creepypasta::nosleep

This library provides one function: nosleep. This function attempts to resolve a future immediately: if the future is not ready, the function panics. You can think of this as like "unwrap" for a future.

This is very unlikely to be useful in production, where you should use a real executor system. But during prototyping maybe it would be useful.

Dependencies

~100–310KB