Calling and Adding Asynchronous Methods

  • 8 Videos | 52m 29s
  • Earns a Badge
Asynchronous methods can be called and added to your application. In this course, you’ll explore how asynchrony can be added to an application by calling asynchronous methods using Task and add asynchronous methods to a class. You’ll begin by learning how to use the Task class, Wait method, and Result property and how to catch exceptions using the Task class. Then you’ll discover how to chain tasks together, how to cancel tasks, and how to create a task and add an asynchronous version of a method to an existing class. Finally, you’ll discover how to create tasks that return data, how to pass parameters into tasks using explicit and explicit parameters, and how to add cancellation support to your code.

WHAT YOU WILL LEARN

  • describe how to use the Task class, Wait method, and Result property
    discuss how to catch exceptions using the Task class
    describe how to chain tasks together using the ContinueWith method
    discuss how to cancel a task using CancellationTokenSource
  • describe how to create a task and add an asynchronous version of a method to an existing class
    discuss how to create tasks that return data using Task<T>
    describe how to pass parameters into tasks using implicit parameters and explicit parameters
    discuss how to add cancellation support to your code

IN THIS COURSE

  • Playable
    1. 
    Using the Task Class
    6m 22s
    UP NEXT
  • Playable
    2. 
    Catching Task Exceptions
    6m 15s
  • Locked
    3. 
    The ContinueWith Method
    9m 24s
  • Locked
    4. 
    Cancelling a Task
    3m 13s
  • Locked
    5. 
    Creating a Task Instance
    5m 27s
  • Locked
    6. 
    Creating a Task<T> Instance
    4m 32s
  • Locked
    7. 
    Passing Parameters into Tasks
    8m 26s
  • Locked
    8. 
    Adding Cancellation Support
    8m 51s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE