-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
116 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
require "celluloid" | ||
|
||
Celluloid.start | ||
|
||
unless defined?($CELLULOID_TEST) && $CELLULOID_TEST | ||
Celluloid.register_shutdown | ||
Celluloid.init | ||
end | ||
|
||
Celluloid.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
$CELLULOID_BACKPORTED = false | ||
require "celluloid" | ||
require "celluloid/autostart" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
class Celluloid::Multiplex | ||
|
||
end | ||
|
||
|
||
=begin | ||
#de https://github.com/celluloid/celluloid/issues/632 | ||
# Acts like an array and receives futures. Will yield them as | ||
# they become ready. | ||
class HackedMultiplexer | ||
include Celluloid | ||
include Enumerable | ||
LOOP_BREATHER = 0.0126 | ||
def initialize | ||
@not_ready = [] | ||
end | ||
def push(obj) | ||
@not_ready.push(obj) | ||
end | ||
alias_method :<<, :push | ||
def each(&blk) | ||
loop do | ||
ready = @not_ready.select { |future| future.ready? } | ||
@not_ready -= ready | ||
ready.each { |future| yield(future) } | ||
break if @not_ready.empty? | ||
end | ||
end | ||
def resolve(arr) | ||
end | ||
end | ||
=end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Celluloid | ||
VERSION = "0.17.4" | ||
VERSION = "0.17.5" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
RSpec.describe Celluloid::Multiplex, actor_system: :global do | ||
|
||
context "resolving Futures" do | ||
it "should fire off the resolution block as each Future becomes available" do | ||
fail NotImplementedError | ||
end | ||
end | ||
|
||
context "resolving Conditions" do | ||
it "should fire off the resolution block as each Condition becomes available" do | ||
fail NotImplementedError | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters