The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Go::Select::Result - Result of select

Description

The Go::Select::Result class in SPVM has methods to manipulate the result of select.

Usage

  use Go::Select::Result;

Fields

ok

has ok : ro byte;

A ok flag got by the read method in the Go::Channel class.

If the channel is a write channle, this value is always 1.

value

has value : ro object;

A return value got by the read method in the Go::Channel class.

channel

has channel : ro Go::Channel;

A channel.

is_write

has is_write : ro byte;

A flag if the channel is a write channel.

If this flag is 0, the channel is a read channel.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License