vickumar1981 / pyeffects

Handle side-effects in Python like a boss. Implements functional types for Either, Option, Try, and Future.
Other
30 stars 6 forks source link

Use asyncio instead of threading #8

Open vickumar1981 opened 4 years ago

vickumar1981 commented 4 years ago

The current Future implementation uses python's threading library, to maintain backwards compatibility with Python 2.

If Python 2 is no longer supported, then the class can instead use asyncio.

vickumar1981 commented 3 years ago

As of 1.0.4, requires Python >= 3.6.

vickumar1981 commented 3 years ago

Open question: How to pass event loop into future class? Should a new class be created for using asyncio, an AsyncFuture?