Question

Lithium's filter has been implemented by chaining so parallel execution doesn't seem to be possible.

Is there a way to run filters in parallel by having the filters return promises as is done with Dojo deferred?

Or is there another PHP framework with AOP functionality that can do this?

Was it helpful?

Solution

Lithium's filters are enabling some kind of monkeypatching which has nothing to do with deferring tasks.

Deferring tasks has to be done through other mechanisms like:

As PHP isn't threaded (under a normal configuration), nothing run in parallel.

Can you elaborate what kind of tasks would you like to run asynchronously?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top