Task.setPriority

Sets task's priority. If you do not call this, it will default to G_PRIORITY_DEFAULT.

This will affect the priority of glib.Sources created with Task.attachSource and the scheduling of tasks run in threads, and can also be explicitly retrieved later via Task.getPriority.

class Task
void
setPriority
()

Parameters

priority int

the priority[io-priority] of the request

Meta

Since

2.36