Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Add tasks to exchange information between actors #9

Open
romaingweb opened this issue Sep 13, 2018 · 0 comments
Open

Add tasks to exchange information between actors #9

romaingweb opened this issue Sep 13, 2018 · 0 comments

Comments

@romaingweb
Copy link
Contributor

romaingweb commented Sep 13, 2018

We are currently using this in Cucumber Pro:

const tell = ({ listener, tellerItem, listenerItem }) => async ({
    actor,
  }) => {
    listenerItem = listenerItem || tellerItem
    const value = await actor.asks(Recall.about(tellerItem))
    await listener.attemptsTo(Remember.that(listenerItem).is(value))
  }
  handle(Tell.about, tell)
  handle(Tell.about.as, tell)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant