async-std icon indicating copy to clipboard operation
async-std copied to clipboard

Provide shared storage in a single system thread?

Open lexoooooo opened this issue 3 years ago • 0 comments

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

lexoooooo avatar Aug 23 '20 06:08 lexoooooo