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

Provide shared storage in a single system thread?

Open lexoliu opened this issue 5 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

lexoliu avatar Aug 23 '20 06:08 lexoliu