def w():
    print('writing...')
s = '*' * (1024 * 1024 * 1024)
print('about to open')
f_raw = open('./a.txt', 'wb')
f = FileObjectThreadPool(f_raw, 'wb')
f.write(s)
f.close()
print('write done')
t1 = gevent.spawn(hi)
t2 = gevent.spawn(w)
ts = [t1, t2]
gevent.joinall(ts)
Python gevent I don't see monkey patched the default file open/read/write/close, how to make file io in gevent async