tink_core icon indicating copy to clipboard operation
tink_core copied to clipboard

Review signals doc

Open back2dos opened this issue 7 years ago • 1 comments

And mention Signal.generate.

back2dos avatar Jan 04 '18 13:01 back2dos

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.

kevinresol avatar Jan 12 '18 08:01 kevinresol