Method Concurrent.use_backend()

Method use_backend

final void use_backend(int enable)

Parameter enable

A false value causes all Concurrent callbacks (except for timeouts) to default to being called directly, without using a backend.


A true value causes callbacks to default to being called via Pike.DefaultBackend.


Be very careful about running in the backend disabled mode, as it may cause unlimited recursion and reentrancy issues.


As long as the backend hasn't started, it will default to false. Upon startup of the backend, it will change to true unless you explicitly called use_backend() before that.


(Un)setting this typically alters the order in which some callbacks are called (depending on what happens in a callback).

See also

Future()->set_backend(), Future()->call_callback()