SPVM-Go
view release on metacpan or search on metacpan
lib/SPVM/Go.pm view on Meta::CPAN
The control is transferred to the scheduler.
Exceptions:
This method must be called from the main thread. Otherwise an exception is thrown.
$timeout must be greater than 0. Otherwise an exception is thrown.
$timeout must be less than or equal to Fn->INT_MAX. Otherwise an exception is thrown.
If IO timeout occurs, an exception is thrown set C<eval_error_id> to the basic type ID of the L<Go::Error::IOTimeout|SPVM::Go::Error::IOTimeout> class.
=head2 sleep
C<static method sleep : void ($seconds : double = 0);>
Sleeps the seconds $seconds.
Exceptions:
This method must be called from the main thread. Otherwise an exception is thrown.
$seconds must be less than or equal to Fn->INT_MAX. Otherwise an exception is thrown.
=head2 ENV_DEBUG
C<static method ENV_DEBUG : int ();>
Casts the value of L</"SPVM_GO_DEBUG> environment variable to int type and returns it.
=head1 Modules
=over 2
=item * L<Go::Channel|SPVM::Go::Channel>
=item * L<Go::Select|SPVM::Go::Select>
=item * L<Go::Select::Result|SPVM::Go::Select::Result>
=item * L<Go::Sync::WaitGroup|SPVM::Go::Sync::WaitGroup>
=item * L<Go::OS::Signal|SPVM::Go::OS::Signal>
=back
=head1 Enviroment Variables
=head2 SPVM_GO_DEBUG
=head1 Repository
L<SPVM::Go - Github|https://github.com/yuki-kimoto/SPVM-Go>
=head1 See Also
=over 2
=item * L<The Go Programming Language|https://go.dev/> - SPVM::Go is a porting of goroutines.
=item * L<Coro> - SPVM::Go uses coroutines.
=back
=head1 Author
Yuki Kimoto C<kimoto.yuki@gmail.com>
=head1 Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License
( run in 2.259 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )