develooper Front page | perl.ldap | Postings from October 2022

Re: NET::LDAP->new( async => 1)

From:
Chris Ridd via perl-ldap
Date:
October 25, 2022 11:23
Subject:
Re: NET::LDAP->new( async => 1)
Message ID:
5A710A55-563C-48D5-A58A-99DF3D9A399C@mac.com
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.Stampfl@amsc.com <mailto:Burt.Stampfl@amsc.com>> 
> Sent: Friday, October 21, 2022 7:52 AM
> To: perl-ldap-help@perl.org <mailto:perl-ldap-help@perl.org>
> Cc: Stampfl, Burt <Burt.Stampfl@amsc.com <mailto:Burt.Stampfl@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.stampfl@amsc.com <mailto:burt.stampfl@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 postmaster@amsc.com <mailto:postmaster@amsc.com> and destroy all copies of this message and any attachments. Thank you."




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About