Gio.PollableInputStreamInterface

Fields

Name

Type

Access

Description

can_poll

object

r

Checks if the Gio.PollableInputStream instance is actually pollable

create_source

object

r

Creates a GLib.Source to poll the stream

g_iface

GObject.TypeInterface

r

The parent interface.

is_readable

object

r

Checks if the stream is readable

read_nonblocking

object

r

Does a non-blocking read or returns Gio.IOErrorEnum.WOULD_BLOCK

Methods

None

Details

class Gio.PollableInputStreamInterface

The interface for pollable input streams.

The default implementation of can_poll always returns True.

The default implementation of read_nonblocking calls Gio.PollableInputStream.is_readable(), and then calls Gio.InputStream.read() if it returns True. This means you only need to override it if it is possible that your is_readable implementation may return True when the stream is not actually readable.

New in version 2.28.