Table of Contents

Class Task

Namespace
Gio
Assembly
Gio-2.0.dll
public class Task : Object, IObject, INotifyPropertyChanged, IDisposable, AsyncResult, IHandle, GTypeProvider
Inheritance
Task
Implements
Inherited Members

Constructors

Task(bool, params ConstructArgument[])

protected Task(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Task(IntPtr, bool)

protected Task(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CompletedPropertyDefinition

public static readonly Property<bool, Task> CompletedPropertyDefinition

Field Value

Property<bool, Task>

Properties

Completed

public bool Completed { get; }

Property Value

bool

Methods

GetCancellable()

[Version("2.36")]
public Cancellable? GetCancellable()

Returns

Cancellable

GetCheckCancellable()

[Version("2.36")]
public bool GetCheckCancellable()

Returns

bool

GetCompleted()

[Version("2.44")]
public bool GetCompleted()

Returns

bool

GetContext()

[Version("2.36")]
public MainContext GetContext()

Returns

MainContext

GetGType()

public static Type GetGType()

Returns

Type

GetName()

[Version("2.60")]
public string? GetName()

Returns

string

GetPriority()

[Version("2.36")]
public int GetPriority()

Returns

int

GetReturnOnCancel()

[Version("2.36")]
public bool GetReturnOnCancel()

Returns

bool

GetSourceObject()

[Version("2.36")]
public Object? GetSourceObject()

Returns

Object

GetSourceTag()

[Version("2.36")]
public IntPtr GetSourceTag()

Returns

IntPtr

GetTaskData()

[Version("2.36")]
public IntPtr GetTaskData()

Returns

IntPtr

HadError()

[Version("2.36")]
public bool HadError()

Returns

bool

IsTagged(IntPtr)

[Version("2.34")]
public bool IsTagged(IntPtr sourceTag)

Parameters

sourceTag IntPtr

Returns

bool

IsValid(AsyncResult, Object?)

[Version("2.36")]
public static bool IsValid(AsyncResult result, Object? sourceObject)

Parameters

result AsyncResult
sourceObject Object

Returns

bool

LegacyPropagateError()

[Version("2.34")]
public bool LegacyPropagateError()

Returns

bool

PropagateBoolean()

[Version("2.36")]
public bool PropagateBoolean()

Returns

bool

PropagateInt()

[Version("2.36")]
public long PropagateInt()

Returns

long

PropagatePointer()

[Version("2.36")]
public IntPtr PropagatePointer()

Returns

IntPtr

ReturnBoolean(bool)

[Version("2.36")]
public void ReturnBoolean(bool result)

Parameters

result bool

ReturnError(Error)

[Version("2.36")]
public void ReturnError(Error error)

Parameters

error Error

ReturnErrorIfCancelled()

[Version("2.36")]
public bool ReturnErrorIfCancelled()

Returns

bool

ReturnInt(long)

[Version("2.36")]
public void ReturnInt(long result)

Parameters

result long

ReturnNewErrorLiteral(Quark, int, string)

[Version("2.80")]
public void ReturnNewErrorLiteral(Quark domain, int code, string message)

Parameters

domain Quark
code int
message string

ReturnValue(Value?)

[Version("2.64")]
public void ReturnValue(Value? result)

Parameters

result Value

SetCheckCancellable(bool)

[Version("2.36")]
public void SetCheckCancellable(bool checkCancellable)

Parameters

checkCancellable bool

SetName(string?)

[Version("2.60")]
public void SetName(string? name)

Parameters

name string

SetPriority(int)

[Version("2.36")]
public void SetPriority(int priority)

Parameters

priority int

SetReturnOnCancel(bool)

[Version("2.36")]
public bool SetReturnOnCancel(bool returnOnCancel)

Parameters

returnOnCancel bool

Returns

bool

SetSourceTag(IntPtr)

[Version("2.36")]
public void SetSourceTag(IntPtr sourceTag)

Parameters

sourceTag IntPtr

SetStaticName(string?)

[Version("2.76")]
public void SetStaticName(string? name)

Parameters

name string