Skip to content

Commit

Permalink
Remove Celluloid.receive
Browse files Browse the repository at this point in the history
  • Loading branch information
halorgium committed Oct 2, 2013
1 parent b4defac commit d0474b8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/celluloid.rb
Expand Up @@ -397,16 +397,6 @@ def linked_to?(actor)
Actor.linked_to?(actor)
end

# Receive an asynchronous message via the actor protocol
def receive(timeout = nil, &block)
actor = Thread.current[:celluloid_actor]
if actor
actor.receive(timeout, &block)
else
Celluloid.mailbox.receive(timeout, &block)
end
end

# Sleep letting the actor continue processing messages
def sleep(interval)
actor = Thread.current[:celluloid_actor]
Expand Down

0 comments on commit d0474b8

Please sign in to comment.