Browse Source

Fix README.md (expect a few of these).

master
luk3yx 3 weeks ago
parent
commit
4cca325690
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      README.md

+ 3
- 2
README.md View File

@@ -2,7 +2,8 @@

A lua coroutine wrapper thing. Inspired by Python's
[asyncio](https://docs.python.org/3/library/asyncio.html). As with Python's
asyncio, coroutines run in one thread and must voluntarily give up control.
asyncio, coroutines run in the main thread and must voluntarily give up
control.

*Note that this doesn't come with I/O-related functions, it is just called
`asyncio` to not conflict with the similar-but-different async mod.*
@@ -13,7 +14,7 @@ asyncio, coroutines run in one thread and must voluntarily give up control.

```lua
local function iter(a)
local stage
local stage = 0
return function()
if stage == 0 then
stage = 1

Loading…
Cancel
Save