Table of Contents

Class CompletableFutureExtensions

Namespace
VpnHood.Core.Client.Devices.Android.Utils
Assembly
VpnHood.Core.Client.Devices.Android.dll

Provides a Java CompletableFuture as a task.

public static class CompletableFutureExtensions
Inheritance
CompletableFutureExtensions
Inherited Members

Methods

AsTask(CompletableFuture)

Gets a task that completes when the future does.

public static Task<Object?> AsTask(this CompletableFuture completableFuture)

Parameters

completableFuture CompletableFuture

The future.

Returns

Task<Object>

A task whose result is the future's result's text, as a Java string, or null; or that fails with an exception carrying the Java error's text.

Exceptions

Exception

The future completed with an error, whose text is the message.