SPVM-Go

 view release on metacpan or  search on metacpan

lib/SPVM/Go/Channel/Wait.spvm  view on Meta::CPAN

# Copyright (c) 2023 Yuki Kimoto
# MIT License

class Go::Channel::Wait {
  allow Go::Schedule;
  allow Go::Channel;
  
  use Go::Coroutine;
  
  has coroutine : Go::Coroutine;
  
  has value : object;
  
  has finish : byte;
  
  has in_buffer : byte;
  
  has ok : byte;
  
  # Class Methods
  static method new : Go::Channel::Wait () {
    
    my $self = new Go::Channel::Wait;
    
    return $self;
  }
}



( run in 1.955 second using v1.01-cache-2.11-cpan-39bf76dae61 )