pub fn current() -> Thread {
    let (task_id, name) = ExecutionState::with(|s| {
        let me = s.current();
        (me.id(), me.name())
    });

    Thread {
        id: ThreadId { task_id },
        name,
    }
}
/// Get a handle to the thread that invokes it
Get a handle to the thread that invokes it
Get a handle to the thread that invokes it
pub fn current() -> Thread {
    let (task_id, name) = ExecutionState::with(|s| {
        let me = s.current();
        (me.id(), me.name())
    });
    Thread {
        id: ThreadId { task_id },
        name,
    }
}
pub fn current ( ) -> Thread { let ( task_id , name ) = ExecutionState :: with ( | s | { let me = s . current ( ) ; ( me . id ( ) , me . name ( ) ) } ) ; Thread { id : ThreadId { task_id } , name , } }
Get a handle to the thread that invokes it
Get a handle to the thread that invokes it