:right-sidebar: True PollableReturn =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.60 .. class:: PollableReturn :no-contents-entry: Return value for various IO operations that signal errors via the return value and not necessarily via a :obj:`~gi.repository.GLib.Error`\. This enum exists to be able to return errors to callers without having to allocate a :obj:`~gi.repository.GLib.Error`\. Allocating :obj:`~gi.repository.GLib.Error` can be quite expensive for regularly happening errors like :const:`~gi.repository.Gio.IOErrorEnum.WOULD_BLOCK`. In case of :const:`~gi.repository.Gio.PollableReturn.FAILED` a :obj:`~gi.repository.GLib.Error` should be set for the operation to give details about the error that happened. Fields ------ .. rst-class:: interim-class .. class:: PollableReturn :no-index: .. attribute:: FAILED The type of the None singleton. .. attribute:: OK The type of the None singleton. .. attribute:: WOULD_BLOCK The type of the None singleton.