pub struct StatsigRuntime { /* private fields */ }
Implementations§
Source§impl StatsigRuntime
impl StatsigRuntime
pub fn get_runtime() -> Arc<StatsigRuntime>
pub fn get_handle(&self) -> Result<Handle, StatsigErr>
pub fn get_num_active_tasks(&self) -> usize
pub fn shutdown(&self)
pub fn spawn<F, Fut>(&self, tag: &str, task: F) -> Result<Id, StatsigErr>
pub async fn await_tasks_with_tag(&self, tag: &str)
pub async fn await_join_handle( &self, tag: &str, handle_id: &Id, ) -> Result<(), StatsigErr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatsigRuntime
impl !RefUnwindSafe for StatsigRuntime
impl Send for StatsigRuntime
impl Sync for StatsigRuntime
impl Unpin for StatsigRuntime
impl !UnwindSafe for StatsigRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more