Skip to content

How to Cancel Running Task? #4

@Beormund

Description

@Beormund

I have a a blink task which repeatedly blinks using a while loop. I would like to cancel the task once wifi has connected. I couldn't work out how to cancel the running task (other than setting a global static variable from the wifi task and then testing this variable from within the blink while loop). Could you please give an example of how to safely cancel a running task? Many Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions