NAME

Crypt::SecretBuffer::AsyncResult - Observe results of a write_async operation

DESCRIPTION

This object holds a reference to a background write operation started by "write_async" in Crypt::SecretBuffer.

METHODS

wait

if (($bytes_written, $os_error)= $result->wait($seconds_or_undef)) {
 ...
}

This waits up to $seconds (or indefinitely if you pass undef) for the write operation to complete. If it has completed, this returns the number of bytes written and the OS error code as a list. On a timeout, it returns an empty list.

VERSION

version 0.005

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.