Io module

backend

procedureextensionexperimentalSource

The backend the running scheduler uses: .IO_URING, .EPOLL, .KQUEUE, .IOCP, .IORING, or .NONE where IO is not implemented. Set JAI_IO_BACKEND to io_uring, epoll, kqueue, iocp or ioring before io_run to ask for one; a backend the system cannot offer is replaced (see backend_reason).

Example↗
Io :: #import "Extensions/Io";


Io.io_run(() {
    assert(Io.backend() != .NONE);
    assert(Io.backend_name().count > 0);
});
backend :: () -> Backend

The backend the running scheduler uses: .IO_URING, .EPOLL, .KQUEUE, .IOCP, .IORING, or .NONE where IO is not implemented. Set JAI_IO_BACKEND to io_uring, epoll, kqueue, iocp or ioring before io_run to ask for one; a backend the system cannot offer is replaced (see backend_reason).

Returns

Example↗
Io :: #import "Extensions/Io";

Io.io_run(() {
    assert(Io.backend() != .NONE);
    assert(Io.backend_name().count > 0);
});

See also