Skip to content

Instantly share code, notes, and snippets.

@erichulburd
Created December 23, 2017 00:34
Show Gist options
  • Save erichulburd/31e12b00fcc125f44860f9812e3a4428 to your computer and use it in GitHub Desktop.
Save erichulburd/31e12b00fcc125f44860f9812e3a4428 to your computer and use it in GitHub Desktop.
const game = (action$, store) =>
action$.ofType(actions.START)
.mergeMap(() => {
const interval = Observable.interval(250)
.takeUntil(action$.ofType(
actions.PAUSE,
actions.RESET,
actions.END
));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment