Name

SPVM::UV::Handle::Async - Async Handle for libuv

Description

UV::Handle::Async in SPVM represents the async handle for libuv, corresponding to the uv_async_t structure.

Super Class

UV::Handle

Usage

use UV::Handle::Async;

my $async = UV::Handle::Async->new;

Fields

async_cb

has async_cb : rw UV::Callback::Async;

The callback called when the async handle has been awakened.

Class Methods

new

static method new : UV::Handle::Async ();

Creates a new 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