Linux AIO WAS Re: new Perl library - Protocol::DBus

Felipe Gasper <felipe-c4PQK5fb7feI/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
> On Nov 17, 2018, at 12:10 PM, L A Walsh <[email protected]> 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
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.