Gnome2:...:Handle(3)
π NAME π
okay bestie, so this page is all about Gnome2::VFS::Async::Handle β like, the async handle situation in the Gnome2::VFS Perl bindings, fr fr. It's a User Contributed Perl Documentation page, which is giving very "the community came through" energy. π«Ά
β¨ METHODS β¨
πΈ $handle->cancel
that's it. that's the method. no args, no drama, she just cancels. iconic behaviour honestly. π
π $handle->close ($func, $data=undef)
closing time, bestie! πͺ here's what you pass in:
$func(scalar) β your callback function, the lil guy who runs when it's done$data(scalar) β optional extra data you wanna hand over (defaults toundef)
π¦ $handle->read ($bytes, $func, $data=undef)
reading era π and the args are:
$bytes(integer) β how many bytes we're pulling$func(scalar) β the callback$data(scalar) β optional, defaults toundef
π $handle->seek ($whence, $offset, $func, $data=undef)
the way that seek needs SO many things, like girl why π here's the whole lineup:
$whence(Gnome2::VFS::SeekPosition) β where you're seeking from$offset(unsigned) β how far you're going$func(scalar) β the callback$data(scalar) β optional,undefby default
β lowkey important: this one has been around Since: vfs 2.6
π $handle->write ($buffer, $bytes, $func, $data=undef)
writing era βοΈ and yes, she takes four things:
$buffer(string) β the actual content you're writing$bytes(integer) β how many bytes$func(scalar) β the callback$data(scalar) β optional, defaults toundef
π ENUMS AND FLAGS π
π enum Gnome2::VFS::SeekPosition
the seek positions, all three of them, no gatekeeping:
'start'/'GNOME_VFS_SEEK_START'β from the top, like a fresh start bestie π'current'/'GNOME_VFS_SEEK_CURRENT'β right where you're at rn π'end'/'GNOME_VFS_SEEK_END'β from the very end, periodt π
π SEE ALSO π
Gnome2::VFSβ go check her out if you want the full picture, iykyk
π COPYRIGHT π
Copyright (C) 2003-2007, 2013 by the gtk2-perl team. π
This software is licensed under the LGPL. See Gnome2::VFS for a full notice. (yes, the actual full notice, go read it, I'm not retyping the whole thing, that's a you-and-Gnome2::VFS moment π«Ά)
okay that's the whole page, bestie!! no cap, you're now fully caught up on Gnome2::VFS::Async::Handle. go slay β¨
this was perl v5.42.0, dated 2025-07-25 β mwah, love u, bye! ππ π¦
π¦ where this page comes from
- fedora 43: perl-Gnome2-VFS 1.084-17.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms