Releases: duckworthd/mirai
Holy Reliable Codebase, Batman!
Thanks to the hardwork for @jdanbrown, we now have a Futures library free of waiting! This means no more unbounded thread count when using Promise.collect
, Promise.join
, and Promise.select
! But fear not, you cowboys of the thread-filled west now have the UnboundedThreadPoolExecutor
at your disposal. Unlike a standard ThreadPoolExecutor
, this version (1) doesn't clean up after itself when your system exits and (2) starts every operation in a new thread. Use with care!
Overview
- 135 tests covering an astonishing 93% (!) of the codebase
- wait-free implementations of Promise-combiner methods
UnboundedThreadPoolExecutor
for when you just don't care how many threads you've got (for yougevent
fans!)
Exceptions that means something
Inspired by @GaelVaroquaux's handling of exceptions in the fantastic joblib, I've cleaned up my presentation of exceptions as well. And a (slightly) better example!
Bugfixes & Renaming
- Fix race condition on
setvalue
andsetexception
- Rename
Future
toPromise
. AFuture
is now a read-only version of aPromise
.
Initial Release
Marks the initial release of mirai
. Testing for all of Future has been implemented, as has all relevant functionality from Promise. Documentation forthcoming!