We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e4b2c commit 69d0a92Copy full SHA for 69d0a92
lua/plenary/async/control.lua
@@ -74,7 +74,7 @@ end
74
---async function, blocks until a permit can be acquired
75
---example:
76
---local semaphore = Semaphore.new(1024)
77
----local permit = await(semaphore:acquire())
+---local permit = semaphore:acquire()
78
---permit:forget()
79
---when a permit can be acquired returns it
80
---call permit:forget() to forget the permit
@@ -176,14 +176,14 @@ M.channel.counter = function()
176
177
Receiver.recv = function()
178
if counter == 0 then
179
- await(condvar:wait())
+ condvar:wait()
180
end
181
counter = counter - 1
182
183
184
Receiver.last = function()
185
186
187
188
counter = 0
189
0 commit comments