Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCodeTraveler authored Nov 22, 2018
1 parent a78659c commit d92d2ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# AsyncAwaitBestPractices

Extensions for `System.Threading.Tasks.Task`:
Extensions for `System.Threading.Tasks.Task`, inspired by [John Thiriet](https://github.com/johnthiriet)'s blog posts: [Removing Async Void](https://johnthiriet.com/removing-async-void/) and [MVVM - Going Async With AsyncCommand](https://johnthiriet.com/mvvm-going-async-with-async-command/).


- AsyncAwaitBestPractices
- Contains `SafeFireAndForget`, an extension method to safely fire-and-forget a `Task`
- [Usage instructions below](#asyncawaitbestpractices)
Expand All @@ -21,7 +23,8 @@ Extensions for `System.Threading.Tasks.Task`:
## Usage

### AsyncAwaitBestPractices
An extension method to safely fire-and-forget a Task

Contains `SafeFireAndForget`, an extension method to safely fire-and-forget a `Task`

```csharp
void HandleButtonTapped(object sender, EventArgs e)
Expand All @@ -40,7 +43,8 @@ async Task ExampleAsyncMethod()
```

### AsyncAwaitBestPractices.MVVM
Includes AsyncCommand and IAsyncCommand which allows ICommand to safely be used asynchronously with Task

Contains `AsyncCommand<T> : IAsyncCommand`, `AsyncCommand : IAsyncCommand` and `IAsyncCommand : ICommand`, which allow for `Task` to safely be used asynchronously with `ICommand`

```csharp
public class ExampleClass
Expand Down

0 comments on commit d92d2ce

Please sign in to comment.