Releases: suned/pfun
Releases · suned/pfun
0.13.2
0.13.0
Features:
- More methods for combining effects asynchronously (#93)
Effect.race
method which allows racing effects against each other asynchronously (#94)Effect.timeout
method which allows timing out effects (#94)Effect.retry
andEffect.repeat
which allows retrying or repeating effects according to a schedule (#94)pfun.schedule
for building schedules (#94)pfun.random
for random number generation as an effect (#94)pfun.clock
for getting system time and sleeping as an effect (#94)- More flexible
pfun.Intersection
type that enables type inference (#94) pfun.DefaultModules
module provider forpfun
provided live modules (Files
,Clock
,Random
,Console
)
Fixes
- Support variadic arguments to
pfun.effect.combine
mypy plugin hook (#92) - Improve typing of
pfun.maybe
(#91)
Other
0.12.3
0.12.2
0.12.1
0.12.0
Features
pfun.effect
is now implemented in Cython, which greatly improves trampoline interpretation speedpfun.maybe
andpfun.either
are now both tagged unions implemented through__bool__
, which allows you to narrow the type usingif
statements instead of the more verboseisinstance
Fixes
aiohttp
dependency version is increased to 3.7.4 to avoid open redirect vulnerability
0.11.5
- Ensure compatibility with MyPy 0.800 (@hugosenari )
- Fix issue where
effect.Resource
would not properly close resources
0.11.4
- Fix issue with
pfun.files.read_byte
with missingr
parameter toopen
(@thomhickey )