Search Results for

Show / Hide Table of Contents

# Delegate TaskCallback

Worker-thread callback for RunTask(string, int, string, TaskCallback, nint, out ulong). Return `0` to continue or non-zero to request cancellation. The `strMessage` in `status` is valid only for the duration of the call — copy it before returning. Keep the delegate instance alive for the whole task so the GC cannot collect it while the worker thread is still calling back.

###### Namespace: FexViewer

###### Assembly: FexViewer.dll

##### Syntax

    public delegate uint TaskCallback(ref TaskStatusRecord status)

##### Parameters

Type | Name | Description
--- | --- | ---
TaskStatusRecord | status | Worker-thread callback for . Return 0 to continue or non-zero to request cancellation. The strMessage in status is valid only for the duration of the call — copy it before returning. Keep the delegate instance alive for the whole task so the GC cannot collect it while the worker thread is still calling back.

##### Returns

Type | Description
--- | ---
uint | Worker-thread callback for . Return 0 to continue or non-zero to request cancellation. The strMessage in status is valid only for the duration of the call — copy it before returning. Keep the delegate instance alive for the whole task so the GC cannot collect it while the worker thread is still calling back.