File.supportsThreadContexts

bool supportsThreadContexts()

Checks if file supports thread-default contexts. 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.