File size: 196 Bytes
60f5111
 
 
 
 
 
 
1
2
3
4
5
6
7
8
try:
    async with trio.open_nursery() as nursery:
        # Make two concurrent calls to child()
        nursery.start_soon(child)
        nursery.start_soon(child)
except* ValueError:
    pass