In the past I have often implemented functionality that adds a job to the queue when a certain condition is met or otherwise executes it synchronously.
Example
When importing data it could be useful to execute the job asynchronous or synchronous based on the data amount. Today I’d do something like:
Motivation
In the past I have often implemented functionality that adds a job to the queue when a certain condition is met or otherwise executes it synchronously.
Example
When importing data it could be useful to execute the job asynchronous or synchronous based on the data amount. Today I’d do something like:
Proposal
I’d like to implement a convenience-method like
dispatchIf
ordispatchUnless
although I'm still undecided on a good name.Thanks for your time. Would be my first contribution, so I’d be grateful for feedback, if this is a reasonable idea and if it’d be worth my time.