From d3cf61b05d9507e7b6ea5a1a1192e107a8612049 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Dec 2015 12:19:00 +0000 Subject: switch to exception-free non-blocking I/O Ruby 2.3 will have `exception: false' support in socket-related classes. Additionally, 2.3 will implement the existing IO#*_nonblock methods more efficiently than before by avoiding the hash allocation necessary for keywords. For users on older Rubies, we'll continue supporting them with compatibility wrappers; even Ruby 1.9.3 users (for now). --- lib/dtas/pipe.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/dtas/pipe.rb') diff --git a/lib/dtas/pipe.rb b/lib/dtas/pipe.rb index 22ab85e..cc1c3b5 100644 --- a/lib/dtas/pipe.rb +++ b/lib/dtas/pipe.rb @@ -6,9 +6,10 @@ rescue LoadError end require_relative '../dtas' require_relative 'writable_iter' +require_relative 'nonblock' # pipe wrapper for -player sinks -class DTAS::Pipe < IO # :nodoc: +class DTAS::Pipe < DTAS::Nonblock # :nodoc: include DTAS::WritableIter attr_accessor :sink -- cgit v1.2.3-24-ge0c7