DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Future, A Token of Task Submission

4 years ago dzone.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Of course, this is the continuation of my previous articles on asynchronous programming.

Also, We look at how to submit a task and how is it processed internally in the executor.

In simple words, a Future is a token of task creation and comes with various methods to check if the computation is complete, to wait for its completion, and to retrieve the result of the computation.

If successful, and this task has not started when cancel is called, this task should never run.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com