Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Add methods to register a set of dependencies #150

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JanKoelzer
Copy link
Contributor

@JanKoelzer JanKoelzer commented Jul 2, 2018

[wip] because we need to check, if this solution works for OPAL.

Six methods of the following form are added:
Cell.when**: (Cell, Callback)* => Unit

Those deps are registered atomically, so this should make the use of CellCompleter.sequential by the client obsolete, i.e. this fixes #146 .

This PR also changes, how duplicate dependencies are handled:
cell1.when(cell2, f)
cell1.when(cell2, g)

Before, the second dep has been discarded, now the first one is overwritten. That matches the behaviour of the new method
cell1.when((cell2, f), (cell2, g))

@JanKoelzer JanKoelzer changed the title Add methods to register a set of dependencies [wip] Add methods to register a set of dependencies Jul 2, 2018
@JanKoelzer JanKoelzer force-pushed the feature/registerSetOfDeps branch from 2ab5660 to 5808dbd Compare November 16, 2018 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Cell.sequential with higher-level API
1 participant