Open Jacalz opened 3 years ago
It would also be great if the "context canceled" error could be exposed somewhere (I could not find where it is created). This would allow me to check if it was cancelled and then avoid showing a bunch of error messages to the users in wormhole-gui.
It would also be great if the "context canceled" error could be exposed somewhere (I could not find where it is created). This would allow me to check if it was cancelled and then avoid showing a bunch of error messages to the users in wormhole-gui.
Is context.Canceled
not what you're looking for?
It would also be great if the "context canceled" error could be exposed somewhere (I could not find where it is created). This would allow me to check if it was cancelled and then avoid showing a bunch of error messages to the users in wormhole-gui.
Is
context.Canceled
not what you're looking for?
Ah, silly me. Don’t know how I didn’t find that when I was looking at that package. Thanks :)
As of https://github.com/psanford/wormhole-william/commit/049df45b8d5a40e6f5f3f43ea7d8c423631ed7ed, cancelling incomming and outgoing connections works great. However, it would be nice if the errors could be a bit more graceful. This does not affect the latest stable release yet.
Cancelling the outgoing send returns this (first error being in the sending end and the second in the receiving end):
Cancelling the incoming receive returns this. Here, the first error (from the receiving end) is what I would like to see, but the second error is not quite as graceful.
I would like it if all the errors could fail gracefully with "context cancelled".