Mail-DKIM

 view release on metacpan or  search on metacpan

doc/async_dns.txt  view on Meta::CPAN

    by passing in the same query parameters.

 C. Have the query_async() call take an extra parameter, a reference
    to a callback function... i.e. a function that will be called
    whenever the query finishes, with the result of the query.

I think I prefer strategy A to B; it's more standard of a practice.
One trick about A is knowing where to store the "token".
I'm not sure yet about A vs C.

C fits in more naturally with coroutines and continuations.
Might make the code more simple, but I need another function that
will block until the query is finished.



( run in 0.447 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )