Skip to content

Commit

Permalink
feat(cancellation): adds readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
didimitrie committed Apr 3, 2021
1 parent bdc105f commit b93aa1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ Q: Does this component use all my cores? A: OH YES. It goes WROOOM.

![image](https://user-images.githubusercontent.com/7696515/95597125-29310900-0a46-11eb-99ce-663b34506a7a.png)


Q: Can I enable cancellation of a longer running task?

A: Yes, now you can! In your component, just add a right click menu action like so:

```cs

public override void AppendAdditionalMenuItems(ToolStripDropDown menu)
{
base.AppendAdditionalMenuItems(menu);
Menu_AppendItem(menu, "Cancel", (s, e) =>
{
RequestCancellation();
});
}

```



### Debugging

Quite easy:
Expand Down

0 comments on commit b93aa1a

Please sign in to comment.