I couldn’t see any examples either. However, if you look at the tests in the 
sources you’ll find a couple of very simple examples.

Eg. https://github.com/perl-ldap/perl-ldap/blob/master/t/60cancel.t

There’s another in 
https://github.com/perl-ldap/perl-ldap/blob/master/t/04refloop.t but it doesn’t 
look helpful to me.

Remember you can always submit operations in parallel out of the box, without 
doing anything special. The only blocking comes when you want to check the 
results.

$res1 = $ldap->modify(“uid=user.0,ou=people,dc=example,dc=com”, […]);
$res2 = $ldap->modify(“uid=user.1,ou=people.dc=example,dc=com”, […]);
# etc

If you come up with a good async example, please raise a PR to add it to 
Examples.pod, or just add a new file in the contrib directory.

Cheers,

Chris

> On 21 Oct 2022, at 14:07, Stampfl, Burt via perl-ldap <perl-ldap@perl.org> 
> wrote:
> 
>  
>  
> From: Stampfl, Burt <burt.stam...@amsc.com <mailto:burt.stam...@amsc.com>> 
> Sent: Friday, October 21, 2022 7:52 AM
> To: perl-ldap-h...@perl.org <mailto:perl-ldap-h...@perl.org>
> Cc: Stampfl, Burt <burt.stam...@amsc.com <mailto:burt.stam...@amsc.com>>
> Subject: NET::LDAP->new( async => 1)
>  
> Hi, 
>  
> I am looking for any information I can find (especially examples) of how to 
> use the ‘async mode in NET::LDAP.
> The metacpan Net::LDAP page tells how to enable it but not how it is actually 
> supported once enabled.
> The I’ve been searching the web for days and still can’t get this feature 
> working.
> Any pointers to documentation and/or examples would be greatly appreciated.
>  
> Thank you
>  
> Burt Stampfl 
> AMSC (NASDAQ: AMSC)
> W231 N2844 Roundy Circle Suite D,  Pewaukee, WI 53072 USA
> Work:    +1 262.901.6007
> Mobile: +1 847.638.1792
> burt.stam...@amsc.com <mailto:burt.stam...@amsc.com>
> amsc.com <http://www.amsc.com/>
>  
> <image001.jpg>
>  
> "This e-mail message and any attachments are confidential and may be 
> privileged. If you are not the intended recipient please notify AMSC 
> immediately by replying to this message or by sending a message to 
> postmas...@amsc.com <mailto:postmas...@amsc.com> and destroy all copies of 
> this message and any attachments. Thank you."

Reply via email to