module Gio::PollableInputStream

Overview

#GPollableInputStream 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.

Direct including types

Defined in:

auto/gio-2.0/pollable_input_stream.cr

Instance Method Summary

Instance Method Detail

def can_poll : Bool #

def create_source(cancellable : Gio::Cancellable?) : GLib::Source #

def is_readable : Bool #

def read_nonblocking(buffer : Enumerable(UInt8), cancellable : Gio::Cancellable?) : Int64 #

abstract def to_unsafe #