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?

有帮助吗?

解决方案

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?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top