binder

Function force_lazy_services_persist

Source
pub fn force_lazy_services_persist(persist: bool)
Expand description

Prevent a process which registers lazy services from being shut down even when none of the services is in use.

If persist is true then shut down will be blocked until this function is called again with persist false. If this is to be the initial state, call this function before calling register_lazy_service.

Consider using LazyServiceGuard rather than calling this directly.