Skip to content

[Management] Asynchronous calls

Rujun Chen edited this page Aug 20, 2021 · 1 revision

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.

Clone this wiki locally