Problem: After the completion of some task, the task issuer should be 
informed about the completion/failure of the task - like by using some 
struct { Result Result, Err error }.

Question: Which mechanism is preferred: using channels or callbacks?

Why the question: IMHO channels are the answer but there is this problem 
with channels that after sending the result to the channel, if we close it, 
there would be another signal which notifies the other side about the 
channel be closed (in _, ok := <-rsultChan; ok will be false).

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to