Skip to content

Commit cb52ade

Browse files
committed
make coroutine intro flow better
1 parent dc83c80 commit cb52ade

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

_posts/2024-10-20-using-coroutines-in-neovim-lua.markdown

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ title: "Using coroutines in Neovim Lua"
44
date: 2024-10-20 11:00:00
55
tags: coroutine lua neovim
66
---
7-
In this blog post I describe the use of Lua coroutines in the context of Lua
8-
programming for Neovim and provide converters for callback-based code for easy
9-
interaction with existing, non-coroutine codebases.
10-
The big pay-off of using coroutines is making your asynchronous code
11-
significantly more readable at little cost once you understand them.
7+
In this blog post:
8+
9+
- I describe the use of Lua coroutines in the context of Lua programming for
10+
Neovim.
11+
- I provide generic converters from callback-based code for easy interaction
12+
with existing, non-coroutine codebases.
13+
14+
The big pay-off of using coroutines is making asynchronous code significantly
15+
more readable.
1216

1317
## Motivation
1418

0 commit comments

Comments
 (0)