Name
SPVM::Go::UV::Handle::Async - Async Handle for libuv
Description
Go::UV::Handle::Async in SPVM represents the async handle for libuv, corresponding to the uv_async_t structure.
Super Class
Usage
use Go::UV::Handle::Async;
my $async = Go::UV::Handle::Async->new;
Fields
async_cb
has async_cb : rw Go::UV::Callback::Async;
The callback called when the async handle has been awakened.
Class Methods
new
static method new : Go::UV::Handle::Async ();
Creates a new Go::UV::Handle::Async object, and returns it.
Instance Methods
send
method send : void ();
Awakens the async handle.
This method calls the uv_async_send function.
Exceptions:
If uv_async_send fails, an exception is thrown.
Copyright & License
Copyright (c) 2026 Yuki Kimoto
MIT License