pub fn spawn<F>(f: F) -> TaskHandleExpand description
Creates a task to be run ‘asynchronously’ (More information at the FreeRTOS docs).
Takes in a closure that can move variables if needed.
If your task has a loop it is advised to use delay so that the task does not take up necessary system resources.
Tasks should be long-living; starting many tasks can be slow and is usually not necessary.