|
|
|
|
|
by mmarq
1467 days ago
|
|
My (rather horrid) pattern to address this problem is to wrap the goroutine in a function that returns a channel receiver. When the goroutine ends it sends something to the channel and whatever called it can await the result or completion using the receiver. |
|
That way, if I end up having multiple waiters, they will all be able to proceed.