FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Method AddPostTask

    AddPostTask(Func<bool, T?, ValueTask>)

    Appends the task with the specified task action, which is executed when the task completes.

    Declaration
    public void AddPostTask(Func<bool, T?, ValueTask> task)
    Parameters
    Type Name Description
    Func<bool, T, ValueTask> task

    The task action to execute after the task completes - the first argument represents IsSuccessful, and the second is the Result.

    Remarks

    The purpose of this is so that you can insert additional logic after the task ends (e.g., so you can implement a wrapper method around a task).

    Tasks should not throw OperationCanceledException if IsSuccessful is false.

    © Singulink. All rights reserved.