Hacker News new | ask | show | jobs
by hueyp 4733 days ago
Yah, for demo purposes of wanting to show something taking awhile thread/sleep is very convenient. I have no idea, time.sleep in golang might actually block a real thread too. I'm just curious if blocking in a go block could starve your thread pool or if there is some magic being done by the macro to even correct for that?
1 comments

There isn't. Thread/sleep will block the thread and potentially starve your thread pool. Be careful not to do it.