tidwall / evio

Fast event-loop networking for Go
MIT License
5.88k stars 491 forks source link

how to write to Conn from another goroutine? #54

Closed yangjuncode closed 5 years ago

yangjuncode commented 5 years ago

since evio run in it's event loop, when Data event happen ,we may run another goroutine for long time processing, when the result is ready, how to write the result to the Conn? is Conn.Wake safe for calling from another goroutine?

what is the best way for this type operation? thanks for any help.

yangjuncode commented 5 years ago

seems Wake is safe for multiple thread calling