async-std
async-std copied to clipboard
Provide shared storage in a single system thread?
I want to implement a database connection pool in async-std, and I need to create a queue in each system thread.However, async-std does not provide an associated api, which means I need to set up a global queue.However, there is no data competition between tasks, and sharing data within a thread is completely thread-safe.I hope to get some help