tagged with channel
Displaying 1-1 of 1 total results

wyhaines

wyhaines/nbchannel.cr

A NBChannel is a non-blocking channel. Normal Crystal channels block on send and on receive. The NBChannel will never block on send, and there are both blocking and nonblocking receive calls available. The channel should work both for single producer, single consumer scenarios, and for scenarios with multiple producers or multiple consumers.

  • 5
  • 0
  • 2
  • 2
  • 1
  • 2 days ago