File.supportsThreadContexts

bool supportsThreadContexts()

Checks if file supports [thread-default contexts][g-main-context-push-thread-default-context]. If this returns false, you cannot perform asynchronous operations on file in a thread that has a thread-default context.

Returns

Whether or not file supports thread-default contexts.