Gio.PollableInputStream
const Gio = imports.gi.Gio; let pollable_input_stream = new Gio.PollableInputStream();
Gio.PollableInputStream is implemented by #GInputStreams that can be polled for readiness to read. This can be used when interfacing with a non-GIO API that expects UNIX-file-descriptor-style asynchronous I/O rather than GIO-style.
Since 2.28
Prerequisites
PollableInputStream requires Gio.InputStream
Known Implementations
PollableInputStream is implemented by ConverterInputStream, MemoryInputStream and UnixInputStream