pub unsafe extern "C" fn task_delete(task_handle: *mut crate::binary::c_types::c_void) {
    trace!("task delete called for {:?}", task_handle);

    let task = if task_handle.is_null() {
        crate::preempt::current_task()
    } else {
        task_handle as *mut _
    };
    crate::preempt::schedule_task_deletion(task);
}
**************************************************************************
Name: esp_task_delete

Description:
Delete the target task

Input Parameters:
task_handle - Task handle pointer which is used to pause, resume
and delete the task

Returned Value:
None

*************************************************************************
esp-wifi/src/wifi/os_adapter.rs