Skip to content

Commit

Permalink
only consume 1 message and release blocking thread
Browse files Browse the repository at this point in the history
  • Loading branch information
fieg committed Jul 14, 2015
1 parent 836b58f commit 1aadb99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TreeHouse/Queue/Message/Provider/AmqpMessageProvider.php
Expand Up @@ -65,6 +65,9 @@ public function consume(callable $callback)
$message = new Message($body, $props, $id);

$callback($message);

// release blocking thread back to php
return false;
});
}
}

0 comments on commit 1aadb99

Please sign in to comment.