Table of Contents

ContinueWith

method in Coherence.Cloud
Methods
public StorageOperation<TResult> ContinueWith(Action action, TaskContinuationOptions continuationOptions = TaskContinuationOptions.NotOnCanceled)

Specify an action to perform after the operation has completed (IsCompleted becomes true.

Parameters
Type Name Description
Action action

Reference to a function to execute when the operation has completed.

TaskContinuationOptions continuationOptions

Options for when the continuation should be scheduled and how it behaves.

Returns
Type Description
StorageOperation<TResult>
public StorageOperation<TResult> ContinueWith(Action<StorageOperation<TResult>> action, TaskContinuationOptions continuationOptions = TaskContinuationOptions.NotOnCanceled)

Specify an action to perform after the operation has completed (StorageOperation<TResult>.IsCompleted becomes true.

Parameters
Type Name Description
Action<StorageOperation<TResult>> action

Reference to a function to execute when the operation has completed.

TaskContinuationOptions continuationOptions

Options for when the continuation should be scheduled and how it behaves.

Returns
Type Description
StorageOperation<TResult>