davidfowl / BedrockFramework

High performance, low level networking APIs for building custom servers and clients.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can a single connection support writing in concurrent scenarios?

eventhorizon-cli opened this issue · comments

Can a single connection support writing in concurrent scenarios? Should I use pool?

The WriteAsync method uses a SemaphoreSlim, so I'd say it's thread safe.