Linux AIO WAS Re: new Perl library - Protocol::DBus
Felipe Gasper
felipe at felipegasper.com
Sat Nov 17 19:12:14 UTC 2018
> On Nov 17, 2018, at 12:10 PM, L A Walsh <dbus at tlinx.org> wrote:
>
> On 10/2/2018 8:10 PM, Felipe Gasper wrote:
>>> On Oct 2, 2018, at 6:57 PM, Lawrence D'Oliveiro wrote:
>>> Does Perl have an equivalent to Python’s asyncio API
>>> <https://docs.python.org/3/library/asyncio.html>?
>>>
>> I’ve not used it, but this might suit:
>>
>> https://metacpan.org/pod/Coro
>>
>> Protocol::DBus isn’t quite I/O-agnostic (the need to do SCM_CREDENTIALS kills that), but it should work with this or pretty much any other I/O scheme.
>>
> There's also package IO::AIO.
>
> It has all of the standard perl file calls with 'aio_' in front of them,
> like:
>
> aio_move $srcpath, $dstpath, $callback->($status)
Additionally, Linux::Perl (also my module) implements the kernel’s AIO mechanism. This is a fundamentally different approach from the more commonly-used POSIX AIO logic.
-FG
More information about the dbus
mailing list