Skip to content

Commit

Permalink
Add stub function for pool
Browse files Browse the repository at this point in the history
  • Loading branch information
p-vinayak committed Aug 28, 2020
1 parent 6d72331 commit 1ba6123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/celluloid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ def behavior_options
def ===(other)
other.is_a? self
end

def pool
raise NoMethodError, "Missing require for 'celluloid/pool'"
end
end

# These are methods we don't want added to the Celluloid singleton but to be
Expand Down Expand Up @@ -488,7 +492,6 @@ def future(meth = nil, *args, &block)

require "celluloid/group"
require "celluloid/group/spawner"
require "celluloid/group/pool" # TODO: Find way to only load this if being used.

require "celluloid/task"
require "celluloid/task/fibered"
Expand Down

0 comments on commit 1ba6123

Please sign in to comment.