Skip to content

[WIP] Implement Blocking lists. - #14

Open
pwhelan wants to merge 10 commits into
clue:masterfrom
pwhelan:blocking-list
Open

[WIP] Implement Blocking lists.#14
pwhelan wants to merge 10 commits into
clue:masterfrom
pwhelan:blocking-list

Conversation

@pwhelan

@pwhelan pwhelan commented Jun 15, 2017

Copy link
Copy Markdown

I finished the blocking lists implementation. In the process I had to upgrade and add the following packages:

  • Promises
  • Evenement
  • Clue\React\Block

I created a wrapper class for SplDoublyLinkedList with the EventEmitterTrait. That should make how I implementated it pretty obvious.

clue and others added 10 commits January 29, 2014 23:40
  * FIX: do not exit the event loop prematurely.
  * Upgrade promises and evenement.
  * Add new Type\RedisList class (adds unshift and pop events
    to SplDoublyLinkedList).
  * Pass the loop to Business\Lists (for use by Clue\React\Block).
  * Return Type\RedisList from Storage for lists.
…ecial type. This fixes a problem when multiple clients block on the same list.
…e active, pass just the key to blockers and wake them up once the length has been retrieved.
…ynchronously write the response when a promise is returned.
@clue clue changed the title Implement Blocking lists. [WIP] Implement Blocking lists. Jun 16, 2017
@clue

clue commented Jun 16, 2017

Copy link
Copy Markdown
Owner

@pwhelan Thanks for your work, I really like the progress you're making here!

I'll mark this as WIP for now and will keep an eye on this. Make sure to send me a ping and/or remove the WIP marker if you have any questions or feel this needs a review 👍

@pwhelan

pwhelan commented Jun 16, 2017

Copy link
Copy Markdown
Author

Yeah. I've had to repeatedly rethink the approach behind it. It seems to be good enough now to run the unit tests for one of my projects. I also have a hashes branch based off of this one.

@pwhelan

pwhelan commented Jun 19, 2017

Copy link
Copy Markdown
Author

@clue the one last remaining bit to fix is with the timeouts. I was thinking of somehow exposing the timeout value to the Invoker, thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants