how about this code?

```
@asyncio.coroutine
def foo(loop=None):
    loop = loop or asyncio.get_event_loop()
    fut = asyncio.Future(loop=loop)
    loop.call_later(0.1, fut.set_exception, FooError)
    try:
         yield from fut
    except FooError:
        pass
```