Gorgi Kosev spion

Organizations

@skopjehacklab @doxout @html5-ds-book
spion commented on issue spion/adbfs-rootless#4
@spion

Haven't made any progress on this, too busy at a new job. Will leave the issue open for a while more, just in case.

spion commented on issue Microsoft/TypeScript#296
@spion

@mindplay-dk I was just demonstrating that you can easily implement user-functions JSX using factory-function JSX, but not vice-versa.

spion commented on issue petkaantonov/bluebird#590
@spion

Promise.cast() has been deprecated for a long time now, ever since ES6 decided to drop it. You should switch to Promise.resolve() for all your cast…

@spion
spion merged pull request spion/blue-tape#8
@spion
mod; package.json
1 commit with 1 addition and 1 deletion
spion commented on issue petkaantonov/bluebird#576
@spion

@petkaantonov did you mean join rather than all? if so, at least the replacement was very straightforward - all(...).spread(...) did work :) Didn't…

spion commented on issue petkaantonov/bluebird#576
@spion

Sorry, this seems like a very bad idea to me. It breaks compatibility for no good reason while removing a feature that cannot be achieved otherwise. …

spion commented on issue Microsoft/TypeScript#296
@spion

And with that, it's bye-bye type-safety - except for that one factory function. "Whoops". Type safety is preserved. See this example on the playg…

spion commented on issue Microsoft/TypeScript#296
@spion

@midplay-dk function simplificationFactory(f, opts, ...rest) { return f(opts, ...rest); } /// <jsx-factory function="simplificationFactory" /> Th…

spion commented on issue Microsoft/TypeScript#296
@spion

@mindplay-dk regarding type annotations you do have a point, but the problem is solvable (perhaps with minor typesystem upgrades). I don't see how …

spion commented on issue petkaantonov/bluebird#570
@spion

That library is misleading. If you look at the code carefully, you will realize that it doesn't actually queue promises. It queues functions that r…

@spion
@spion
Typo fixed
1 commit with 1 addition and 1 deletion
spion commented on issue Microsoft/TypeScript#296
@spion

@mindplay-dk true, its the simplest. But its not the most versatile: it demands functions (no classes or strings allowed), it demands that they are…

spion commented on issue petkaantonov/bluebird#565
@spion

Here is a simple use case: An xhr request is sent to the server to fetch search results. At the same time a spinner is activated to indicate that a…

spion commented on issue petkaantonov/bluebird#565
@spion

Just an idea: it would be nice to come up with 2 or 3 different use cases and see how different designs would apply to them.

spion commented on issue petkaantonov/bluebird#570
@spion

This issue comes up again and again but its not solved because its impossible to solve it in the way people suggest. This is because promises are e…

spion commented on issue petkaantonov/bluebird#565
@spion

@Artazor this is great, I eagerly await your updates/continuation :)

spion commented on issue petkaantonov/bluebird#532
@spion

@shaunc @bergus IMO the right solution here is definitely a different monadic (or promise-like) abstraction like the tx monad. I'll try and see if …

spion commented on issue petkaantonov/bluebird#565
@spion

Can I just add a finally handler? Promise.try(f, tx) .then(res => tx.commitAsync().thenReturn(res), err => tx.rollbackAsync().catch(ignore).thenThr…

spion commented on issue petkaantonov/bluebird#565
@spion

@petkaantonov this is a library function - what if a user of my library enables cancellation on their copy of bluebird for their needs?

spion commented on issue petkaantonov/bluebird#565
@spion

Looks okay to me. But I do have a question. What should I write in order to make db.transaction work with 3.0? The API is: db.transaction(tx => tx.…

spion commented on issue petkaantonov/bluebird#554
@spion

@bergus you're right wrt debugging stuck promises, which is why I think that forget semantics is not a good idea at all, but oh well. I guess we'll…

spion commented on issue petkaantonov/bluebird#554
@spion

@petkaantonov but you can mitigate that by immediately adding error handlers to that promise as well. Asynchronously adding handlers can be useful …

spion commented on issue petkaantonov/bluebird#554
@spion

@bergus you do understand that what you propose intintroduces the timing issue right? Launch two operations in parallel then cancel one of them the…

spion commented on issue petkaantonov/bluebird#554
@spion

@bergus Hmm I thought that in 3.0 cancellation will not result with rejections; only finally handlers will be called, but not fulfillment or reject…

spion commented on issue petkaantonov/bluebird#554
@spion

@bergus If a promise is cancelled, and then a new handler is added, the new handler should see a rejection with CancellationError. That seems pr…