Is LocalSet#run_until cancel safe? #6121
-
I've got code that simplifies to something like this:
And one of the local set tasks is putting messages onto the mpsc channel. it's behaving oddly, the unwrap is panic'ing on a None when I wouldn't expect it to. Most likely problem is PBKAC, but if LocalSet#run_until isn't cancel safe I'll need to do something else. Can somebody verify that LocalSet#run_until is cancel-safe? Either way this seems like something that should be in the docs. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, as long as you give it a cancel safe future as the argument, Please file a documentation bug about |
Beta Was this translation helpful? Give feedback.
Yes, as long as you give it a cancel safe future as the argument,
run_until
is cancel safe. Your issue is probably something else.Please file a documentation bug about
run_until
not explaining this.