Skip to main content

Module facade

Module facade 

Source

Re-exports§

pub use crate::context::ObjectContext;

Functions§

acquire
Acquire a value from the pool, if not exists, wait until it is provided. If the value is shutdown while waiting, return error immediately to avoid waiting forever. This function is designed for the scenario that comsumer want to ensure a value is provided and blocking on it. If you want to use it as a subscriber, you may got some value lost in the scenario that the value is frequently provided and comsumer is slow.
drop_context_entry
drop_context_value
drop_entry
drop_value
fulfill
fulfill_context
fulfill_with_context_shutdown
fulfill_with_shutdown
provide
Provide a value to the pool, it will let the old value shutdown if exists. Provide value to a existing value means safe HOT RELOAD
provide_context
provide_context_with_shutdown
provide_instant
provide_instant_context
provide_with_shutdown
require
Fast try to get a value from the pool, if not exists, return error immediately.
shutdown
shutdown_local