get_context


Description:

[ Version ( since = "2.36" ) ]
public unowned MainContext get_context ()

Gets the MainContext that this will return its result in (that is, the context that was the thread-default main context at the point when this was created).

This will always return a non-null value, even if the task's context is the default MainContext.

Parameters:

this

a Task

Returns:

this's MainContext




2022 vala-language.org