ethereum / asyncio-run-in-process

A simple asyncio friendly replacement for multiprocessing to run coroutines in a separate process.
MIT License
13 stars 9 forks source link

Refactor how tasks are cleaned up #9

Closed pipermerriam closed 4 years ago

pipermerriam commented 4 years ago

What was wrong?

The way that tasks were being cleaned up left room for edge cases where some cleanup might fail.

How was it fixed?

Created a fancy async context manager to do it in a more reliable and granular way that ensures each individual task is isolated during cleanup and an exception during cleanup of one task won't cause the cleanup of the others to fail.

Cute Animal Picture

2BE9013F00000578-0-image-a-5_1441209978133