pub fn current() -> Result<Task, FreeRtosError> {
        unsafe {
            let t = freertos_rs_get_current_task();
            if t != 0 as *const _ {
                Ok(Task { task_handle: t })
            } else {
                Err(FreeRtosError::TaskNotFound)
            }
        }
    }
/// Try to find the task of the current execution context.
Try to find the task of the current execution context.
Try to find the task of the current execution context .
pub fn current() -> Result<Task, FreeRtosError> {
        unsafe {
            let t = freertos_rs_get_current_task();
            if t != 0 as *const _ {
                Ok(Task { task_handle: t })
            } else {
                Err(FreeRtosError::TaskNotFound)
            }
        }
    }
pub fn current ( ) -> Result < Task , FreeRtosError > { unsafe { let t = freertos_rs_get_current_task ( ) ; if t != 0 as * const _ { Ok ( Task { task_handle : t } ) } else { Err ( FreeRtosError :: TaskNotFound ) } } }
Try to find the task of the current execution context.
Try to find the task of the current execution context .