|
|
|
|
|
by silisili
394 days ago
|
|
You can kinda work around this though. runtime package has a LockOSThread that pins a goroutine to its current thread and prevents others from using it. If you model it in a way where you have one goroutine per os thread that receives and does work, it gets you close. But in many cases that means rearching the entire code base, as it's not a style I typically reach for. |
|