mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Thread scheduler for light weight concurrency.
This commit is contained in:
parent
336119dfc5
commit
0e3b0fcdba
Notes:
git
2020-05-14 19:11:27 +09:00
Merged: https://github.com/ruby/ruby/pull/3032 Merged-By: ioquatix <samuel@codeotaku.com>
28 changed files with 1018 additions and 309 deletions
|
@ -25,7 +25,7 @@ describe "BasicSocket#write_nonblock" do
|
|||
platform_is :linux do
|
||||
it 'does not set the IO in nonblock mode' do
|
||||
require 'io/nonblock'
|
||||
@w.should_not.nonblock?
|
||||
@w.nonblock = false
|
||||
@w.write_nonblock("aaa").should == 3
|
||||
@w.should_not.nonblock?
|
||||
end
|
||||
|
@ -34,7 +34,7 @@ describe "BasicSocket#write_nonblock" do
|
|||
platform_is_not :linux, :windows do
|
||||
it 'sets the IO in nonblock mode' do
|
||||
require 'io/nonblock'
|
||||
@w.should_not.nonblock?
|
||||
@w.nonblock = false
|
||||
@w.write_nonblock("aaa").should == 3
|
||||
@w.should.nonblock?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue