nextcore
nextcore copied to clipboard
refactor: safely store and close tasks
This PR attempts to safely store then close any loose tasks in the code. AnyIO's task groups are used to safely handle tasks all being created to run coroutines (like the dispatcher and shard manager). Closes #190.