async_tools 0.1.4 copy "async_tools: ^0.1.4" to clipboard
async_tools: ^0.1.4 copied to clipboard

Useful data structures and tools for async/Future code

Collection of useful tools for async/Future code in Dart #

Tests are not complete

Mutex is extended and borrow from Mutex package

Contains #

  • AsyncTagLock - Lock access to a resource based on an object instance
  • AsyncValue - Like riverpod's AsyncValue, but without Riverpod. Can represent 'data', 'loading', and 'error' states for a value generated asynchronously.
  • WaitSet - Execute a set of async closures and wait for them to all to finish
  • DelayedWaitSet - Execute a set of async closures starting at the same time, and wait for them all to finish
  • serialFuture - Process a single future at a time per tag queued serially
  • singleFuture - Process a single future at a time per tag
  • SingleStateProcessor - Process a single state update at a time ensuring the most recent state gets processed asynchronously, possibly skipping states that happen while a previous state is still being processed
  • SingleStatelessProcessor - Process a single stateless update at a time ensuring each request gets processed asynchronously, and continuously while update is requested
0
likes
0
pub points
50%
popularity

Publisher

verified publisherveilid.com

Useful data structures and tools for async/Future code

Repository (GitLab)
View/report issues

Funding

Consider supporting this project:

veilid.org

License

unknown (license)

Dependencies

collection, freezed_annotation

More

Packages that depend on async_tools