atomicloop (pypi): Create atomic loop iterations (let the iteration finish even when interrupted)
Keywords: atomic|linearizable|undivisible|uninterruptible|loop|block|operation|delayed|interrupt|keyboardinterrupt|SIGINT|SIGTERM|atomic-loop|atomicity|graceful-shutdown|iteration|linearizability|machine-learning|python|reinforcement-learning|sigint|sigterm