AsyncExclusivePeriods

Think about such scene, some object has different state or periods, well we call periods.Among these periods, there can't be any two that could be both the present period. The object could be in only one period. For example, a human can only be one period of baby, youth, adult, old man and dead.


License
MIT
Install
pip install AsyncExclusivePeriods==1.12

Documentation

AsyncExclusivePeriods

Think about such scene, some object has different state or periods, well we call periods.Among these periods, there can't be any two that could be both the present period. The object could be in only one period. For example, a human can only be one period of baby, youth, adult, old man and dead.

So now not only can you get the exact period, but also await inside the period, await outside the period, await time when the object enters the period and await time when the object exits the period.

Remember to distribute different periods for one object.

This repository has been inherited by https://pypi.org/project/AsyncGear/.