v1.1.1
This version has been yanked, it contained a silly bug that is fixed in v1.1.2
Optimization release, Future.all
, .first
and .resolved
create fewer objects.
Most significantly Future.resolved
and Future.resolved(nil)
return a constant future pre-resolved to nil
. In addition to existing optimizations of the futures returned by Future.resolved
this variant is now very cheap. Future.resolved.value
is now only two method calls and no object allocations.