Márton Balassa

Results 47 comments of Márton Balassa

Yes, tasks are executed in the order they were added, and the next task is executed only if the previous one has been completed or cancelled.

Any idea of what should happen when `maxSize` is exceeded? I think `push` should throw an `Error` in this case, because the `error` event is used to notify of errors...

I don't think Promise Queue Plus supports this at all. It has an option to set the maximum concurrent tasks, but as far as I can tell from the source,...

Also, please add some unit tests.

Is there any plan to do this in the near future? I wasn't aware of the fact that it's not supported, saw the warning when I already used this pattern...

@divega I didn't even think about setting collation, but it could solve my short-term problems, thanks for the tip.

Created a new experimental async lock implementation that supports fast, zero-alloc reentrancy: https://github.com/BalassaMarton/AsyncExtensions I'd be happy to see your feedback, especially from @StephenCleary

@timcassell look at this example: https://github.com/BalassaMarton/AsyncExtensions?tab=readme-ov-file#example-recursive-async-locking-using-a-token The specific problem I was trying to solve: I had a bunch of short, specific methods that needed exclusive access to resources, but it...

> Hi, what is the current state of this PR? @BalassaMarton Are you using these fixes successfully in production? I don't work on that project anymore, but iirc using the...

This is something we also need: we use HF in an event sourcing scenario where it is required that - enqueued jobs (of the same method) run in strict FIFO...