jonathanscruz (Jonathan Cruz)
- Login: jonathanscruz
- Email: jonathanscruz@yahoo.com
- Registered on: 09/04/2015
- Last sign in: 02/03/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 2 | 0 | 2 |
Activity
09/17/2015
-
09:02 PM Ruby Feature #11517: Queue enhancement - conditional pop
- Yura Sokolov wrote:
> Why don't you use separate queue with separate worker? It will solve your use case.
> ...
That is an excellent suggestion. It might complicate the implementation, but it's worth thinking about. We have a configura... -
08:40 PM Ruby Feature #11518: Queue enhancement - promote! and promote_all!
- Yura Sokolov wrote:
> First: you forgot to lock queue. Multithreading will bite you.
> ...
First: You're right. My C skills are a bit rusty and I wasn't sure how to do that. Then I think I just forgot about it before submitting this. I...
09/09/2015
-
03:04 PM Ruby Feature #11518 (Assigned): Queue enhancement - promote! and promote_all!
- I’m submitting a patch to enhance the Queue class by adding the methods Queue#promote! and Queue#promote_all!. These methods require a block that accepts queue elements. Elements for which the block returns a truthy value are moved to th...
-
03:03 PM Ruby Feature #11517 (Assigned): Queue enhancement - conditional pop
- I’m submitting a patch to enhance Queue#pop. This allows the caller to provide a block that accepts data from the queue. Queue#pop will return the first element for which the block returns a truthy value, and remove it from the queue. Wi...