Commit graph

4 commits

Author SHA1 Message Date
Aaron Schulz
4ace725b4e jobqueue: avoid exceptions due to races in redis job listing functions
* Also improved MappedIterator to allow for an accept() closure.

Change-Id: I614dc6e98b5c6297f3efc7a0004fbabd19624915
2013-07-09 16:57:40 -07:00
Tyler Anthony Romeo
3b7c4f692e Removed Closure type hints where not needed.
Closures are not the only types of callable objects in PHP.
Specifically, any string referencing a valid function, any object with a __call(),
or any class with a __callStatic() can all be called.
Therefore, removed type hinting for Closures in places where a callable is expected.
(Unfortunately, the callable type-hint only comes in PHP 5.4.)

Change-Id: I6bff7e4a95716ef63aa7e07d3d9fef6d20eb65a6
2013-05-19 17:09:52 +00:00
Aaron Schulz
405c69da06 Fixed $vCallback comment and removed unused return value.
Change-Id: If438d83e1b43c110b3c23e8d0a7705fa0795049f
2013-03-08 09:49:13 -08:00
Aaron Schulz
5cfcb3053d [JobQueue] Added JobQueue::getAllQueuedJobs() function.
* Also added a small MappedIterator class for convenience.

Change-Id: I7dac1001a8e048cb524f7fbfee50a20a32e598ba
2013-03-08 06:34:31 +00:00