TaskChain icon indicating copy to clipboard operation
TaskChain copied to clipboard

Prepend task to shared chain

Open sandrwich opened this issue 5 years ago • 1 comments

Is it currently possible to insert into shared chain at the beginning, not the end? I'm using taskchain for queue-like thing and I need to make some tasks high priority.

In the current scenario, I'm adding things to the queue like this:

sharedChain.async(..).asyncFirstCallback(..).sync(..).execute()

sandrwich avatar Nov 19 '19 14:11 sandrwich

Currently no, but PR's welcome for something like newSharedChain(id, true) where true = queueHead that defaults to false.

aikar avatar Nov 19 '19 15:11 aikar