Skip to main content

require

Function require 

Source
pub async fn require<T: Any + Send + Sync>() -> Result<Arc<T>>
Expand description

Fast try to get a value from the pool, if not exists, return error immediately.