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