class Async::Wrapper

def wait_writable(duration = nil)

Wait for the io to become writable.
def wait_writable(duration = nil)
	raise WaitError if @writable
	
	self.reactor = Task.current.reactor
	
	begin
		@writable = Fiber.current
		wait_for(duration)
	ensure
		@writable = nil
		@monitor.interests = interests if @monitor
	end
end