A small library implementing a capable generic
Futureis "monadic", so support's
flatMap. Also supports
gatheras a convenience to combine several
Futuredoes not bake in support for errors handling or cancelation. A client should instead achieve this by placing a
Resultin to a
- Do not provide lots of wrappers for existing system functions – these should be seperate.
- Make it trivial to wrap any function with an asynchronous
- Make it very easy to transform and combine together things that are wrapped in a
- A small and easily learned, but complete and powerful API.
- Consumers of
Futureshould not feel an urge to "unwrap" it and use its internals.
Properly package as a Pod or something?
Actually use it for something. There are tests, and
pascal attepts to do some exciting things with a
Future, but it's not definitely not realistic usage.