Module gstuff::oneshot

source ·
Expand description

Reason for having this is that neither multiqueue nor crossbeam_channel implement UnwindSafe currently.

cf. https://github.com/crossbeam-rs/crossbeam-channel/issues/25.

Condvar is hopefully unwind-save since it’s using a poisoning Mutex. Should unit-test it though.

Structs

  • Returns the value from the channel.
  • Accepts one value into the channel.

Functions

  • Create a new oneshot channel.