Sha256: d8b5fdde6c3048d2cadc5c56a6c2df4258d972f009686f25dca4947046afe533
Contents?: true
Size: 296 Bytes
Versions: 17
Compression:
Stored size: 296 Bytes
Contents
# frozen_string_literal: true class Async::ResultNotification def initialize @channel = Async::Channel.new end def signal(item = nil) @channel << (block_given? ? yield : item) rescue Async::Stop, StandardError => e @channel.error(e) end def wait = @channel.dequeue end
Version data entries
17 entries across 17 versions & 1 rubygems