(func)
| 17 | from functools import wraps |
| 18 | |
| 19 | def consumer(func): |
| 20 | @wraps(func) |
| 21 | def start(*args,**kwargs): |
| 22 | f = func(*args,**kwargs) |
| 23 | f.send(None) |
| 24 | return f |
| 25 | return start |
| 26 | |
| 27 | # Sample coroutine |
| 28 | @consumer |
nothing calls this directly
no outgoing calls
no test coverage detected