Commit 85257b2a authored by Kirill Smelkov's avatar Kirill Smelkov

sync.WorkGroup: Fix typo in wait

WorkGroup methods work on PyWorkGroup, not on PyWaitGroup.
This probably used to work because Cython ignores (?) provided type of self?

/reviewed-on !12
parent f15459b9
......@@ -218,10 +218,10 @@ cdef class PyWorkGroup:
with nogil:
workgroup_go_pyctxfunc_pyexc(pywg.wg, pywg._pyctx.ctx, <PyObject*>pyrunf)
def wait(PyWaitGroup g):
def wait(PyWorkGroup pyg):
cdef error err
with nogil:
err = workgroup_wait_pyexc(g.wg)
err = workgroup_wait_pyexc(pyg.wg)
if err == nil:
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment