Is it a good idea to use the "tokio" library for numerical analysis which has nothing to do with network?
I have some numerical algorithm that needs some coroutine framework to run parallel on different threads (the async/await structure) and do async/await. I need that because the numerical computation which is CPU bound consists of many small routines, some waiting for others. Something like goroutines would feel ideal. However, it has nothing to do with internet/servers, which is presumably what tokio is designed for?
Is it a good idea to use tokio or something else instead?
I need both coroutines and parallelism.
EDIT: The issue is that - I need coroutines which can be run on different threads like gorountines. Starting too many OS threads is slow. A plain thread pool cannot handle async/await communication very well - a worker will be blocked while waiting.