Say a goroutine is blocking on a channel read. Is there any way to end its
execution without its intervention?
I want to implement a (toy, don't freak out) try-catch mechanism. I want
the catch block to be able to resume execution, or end it.
I could do it just making "try" a function that returns nothing and
panicking from the "catch" function to end the execution, but I find it
inelegant (and messy if the "try" function recovers).
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.