Richard Ayotte
Richard Ayotte

Reputation: 5080

How can I run filters in parallel in Lithium?

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?

Upvotes: 0

Views: 188

Answers (1)

greut
greut

Reputation: 4373

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?

Upvotes: 1

Related Questions