On Thu, Jan 16, 2014 at 1:59 PM, sri <[email protected]> wrote:

> Here's my first attempt at explainaing the difference between blocking and
> non-blocking operations in the Mojolicious documentation.
>
>
> https://github.com/kraih/mojo/commit/2772cba060999a25d621c4c8caaff4db54d2cc07
>

At the end of that, while perhaps redundant, it'd be helpful to see:

You cannot magically make any subroutine a non-blocking one by simply
passing a callback.  You will need to carefully select a subroutine that
was built to do so and may therefore need to select a different Module or
recognize that an appropriate one does not yet exist.  When looking for
non-blocking ability, always be on the lookout for any code that you use
which might block.  See: Will my code magically become non-blocking with
Mojolicious?


> I'd really like something similar for explaining event loops, possibly
> with a "while (1) {...}" block example.
>

-- 
*----------------------------------------------------------------*
*Keystone IT made the following notation*
*----------------------------------------------------------------*
*Email Confidentiality Notice: The information contained in this 
transmission is confidential, proprietary or privileged and may be subject 
to protection under the law, including the Health Insurance Portability and 
Accountability Act (HIPAA). *

*This message is for the sole use of the intended individual or entity to 
whom it is addressed. If you are not the intended recipient, you are 
notified that any use, distribution or copying of the message is strictly 
prohibited and may subject you to criminal or civil penalties. If you 
received this transmission in error, please contact the sender immediately 
at (314) 621-9500 and delete the material from all computers.*

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to