[Management] Asynchronous calls - Azure/azure-sdk-for-java GitHub Wiki

Reactor

One way of working asynchronously with the SDK is to integrate with Reactor.

Mono<VirtualMachine> vmObservable = vmCreatable.createAsync();

This is also how we handle the resource creations under the hood. Imagine creating a virtual machine, the creation of a disk and the creation of a virtual network are parallelized using Reactor.

The Mono or Flux we return are cold sequence. They do not start executing unless they are being subscribed.