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 nexedi/pygolang!12
parent f15459b9
...@@ -218,10 +218,10 @@ cdef class PyWorkGroup: ...@@ -218,10 +218,10 @@ cdef class PyWorkGroup:
with nogil: with nogil:
workgroup_go_pyctxfunc_pyexc(pywg.wg, pywg._pyctx.ctx, <PyObject*>pyrunf) workgroup_go_pyctxfunc_pyexc(pywg.wg, pywg._pyctx.ctx, <PyObject*>pyrunf)
def wait(PyWaitGroup g): def wait(PyWorkGroup pyg):
cdef error err cdef error err
with nogil: with nogil:
err = workgroup_wait_pyexc(g.wg) err = workgroup_wait_pyexc(pyg.wg)
if err == nil: if err == nil:
return 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