| 51 | |
| 52 | |
| 53 | class JustWrite(ConcurrentRunner): |
| 54 | def __init__(self, gfs, num): |
| 55 | super().__init__() |
| 56 | self.gfs = gfs |
| 57 | self.num = num |
| 58 | self.daemon = True |
| 59 | |
| 60 | def run(self): |
| 61 | for _ in range(self.num): |
| 62 | file = self.gfs.open_upload_stream("test") |
| 63 | file.write(b"hello") |
| 64 | file.close() |
| 65 | |
| 66 | |
| 67 | class JustRead(ConcurrentRunner): |
no outgoing calls