Ben Lesh

Results 270 comments of Ben Lesh

more here https://wicg.github.io/scheduling-apis/#sec-task-controller

@domfarolino :) It was in-process while you were typing that: https://github.com/web-platform-tests/wpt/pull/47874

FYI: For anyone landing here looking for a workaround, you can use this type to break N optional properties on an interface into a union of required (mutually exclusive) properties....

> Fwiw @benlesh I don't totally follow your example, as I believe it assumes that OuterMessage only has a single oneof; as soon as there are multiple oneofs, that approach...

Teardowns should be executed during finalization of observation. They are roughly what you'd put in a "finally" block if we had syntax for observable in JavaScript. Since the result of...

Other prior art: `Promise.prototype.finally` ```ts Promise.resolve(1) .finally(() => console.log('one')) .finally(() => console.log('two')) // Logs // "one" // "two" ``` Yeah... the observable implementation needs to abort the upstream subscription before...

I would assume it would still fire once, then complete. For consistency. Of course, subscribing again would start waiting for a new close event. But that's interesting. I guess we...

Looking more deeply into this, given that the lines for the tree also have a hover callback, we might not be able to do this in stages. It might be...

It also seems that the entropy calculation is expensive, and may be being done too often.

RxJS is already moving this direction. Version 8 (still alpha) added an `rx` function that effectively is just this: ```ts function rx(source, ...fns) { return from(source).pipe(...fns); } ``` So with...