class Async::Notification

@public Since ‘stable-v1`.
A synchronization primitive, which allows fibers to wait until a notification is received. Does not block the task which signals the notification. Waiting tasks are resumed on next iteration of the reactor.

def signal(value = nil, task: Task.current)

Signal to a given task that it should resume operations.
def signal(value = nil, task: Task.current)
	return if @waiting.empty?
	
	Fiber.scheduler.push Signal.new(@waiting, value)
	
	@waiting = []
	
	return nil
end