From 176c0bde4140fa0c3403d19c11eb32dc456bf7ad Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Fri, 1 Feb 2013 02:36:52 +0100 Subject: README: refer to the example --- README.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.markdown b/README.markdown index 6c9e7a7..3fd8159 100644 --- a/README.markdown +++ b/README.markdown @@ -65,6 +65,9 @@ to happen before resuming the coroutine. This allows libraries to be written such that calls appear to be blocking, while still allowing other Lua coroutines to run. It also allows you to write libraries which automatically spawn new coroutines to handle incoming events. +In the above example the autospawn method automatically spawns new coroutines +to handle incoming connections, and the read and write methods suspends the +the running coroutine while waiting for I/O. For this to work properly LEM modules needs to use non-blocking I/O. However, not all I/O can easily be done non-blocking. Filesystem operations is one example. -- cgit v1.2.1