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

Review signals doc #76

Open
back2dos opened this issue Jan 4, 2018 · 1 comment
Open

Review signals doc #76

back2dos opened this issue Jan 4, 2018 · 1 comment

Comments

@back2dos
Copy link
Member

back2dos commented Jan 4, 2018

And mention Signal.generate.

@kevinresol
Copy link
Member

Don't forget to mention Signal.generate will swallow all immediately triggered items.
I was tricked by it just now 😭

var s = Signal.generate(t -> {
  t(1);
  t(2);
  t(3);
});
s.handle(function(o) trace(o)); // will never fire

Actually I was tricked by some code that I expect it to produce async results but turns out it is not.

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

No branches or pull requests

2 participants