Agreed, they are for slightly different purposes. ForkCall is usually used 
to "unblock" a simple task while RWF is for more full featured interaction. 
Neither is inherently better than the other. Use the one that best suits 
your needs. (And yes I know that Dan has already said basically this same 
thing, but as the author of ForkCall I just wanted to write to concur).

Cheers,

Joel

On Monday, May 23, 2016 at 4:45:09 AM UTC-5, Matija Papec wrote:
>
>
> Tnx, RWF looks more versatile so I'll try it.
>
> regards
>
>
> On Saturday, May 21, 2016 at 8:14:32 PM UTC+2, Dan Book wrote:
>>
>> ForkCall runs a perl function, and you get the return value back. 
>> ReadWriteFork runs a perl function or external binary, and you can write to 
>> STDIN and get STDOUT/STDERR events. Thus they are useful for slightly 
>> different use cases, choose the one that is simplest for your needs.
>>
>> On Sat, May 21, 2016 at 11:07 AM, Matija Papec <[email protected]> 
>> wrote:
>>
>>>
>>> These two are from core members so I can't decide which to use.
>>>
>>> https://metacpan.org/pod/Mojolicious::Plugin::ForkCall
>>> https://metacpan.org/pod/Mojo::IOLoop::ReadWriteFork
>>>
>>> I would use it for perl legacy/blocking code, and for calling external 
>>> binaries as well.
>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mojolicious" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/mojolicious.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to