mooc-notes

Notes from online courses

View on GitHub

Java Fundamentals: Asynchronous Progamming using Completion Stage - Pluralsight course by Jose Paumard

Module 1 - Course Overview

Nothing much to note here


Module 2 - Introducing Asynchronous vs. Concurrent Tasks

Overview
Pre requisites
Agenda of the Course
Agenda of this Module
Technical Vocabulary
Module wrap up

Module 3 - Setting up Asynchronous Operations with CompletionStage

Agenda of this module
What is a Task?
Defining and Writing a Task

What are the available models to launch tasks in another thread?

It is always possible to launch a task in the current thread using “run” in Runnable and “call” in Callable The “java.util.concurrent” API brings patterns to launch them in another thread

How to launch tasks in another thread?
From Future to Completable Future
Running in Another Thread
Closer look at the CompletableFuture
Future vs. CompletableFuture

In CompletableFuture API

5 methods on Future
6 Future-like methods in CompletableFuture (not defined on CompletionStage)
complete(value)
completeExceptionally(throwable)
obtrudeException(throwable)

to be continued…