Browse Source

Coroutine

pull/9/head
Jure Šorn 6 years ago
parent
commit
f96cc4de30
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -1141,11 +1141,11 @@ Coroutine
```python
def coroutine(func):
def start(*args, **kwargs):
def out(*args, **kwargs):
cr = func(*args, **kwargs)
next(cr)
return cr
return start
return out
```
### Pipeline Example

Loading…
Cancel
Save