Name
SPVM::Go::Select::Result - Result of select
Description
Go::Select::Result class of 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