()
| 210 | |
| 211 | # should be blocked |
| 212 | def write_blocking_call(): |
| 213 | asyncio.run( |
| 214 | writer.write( |
| 215 | [ |
| 216 | Experience( |
| 217 | tokens=torch.tensor([1, 2, 3]), |
| 218 | prompt_length=2, |
| 219 | info={"model_version": 4, "use_count": 0}, |
| 220 | ) |
| 221 | ] |
| 222 | ) |
| 223 | ) |
| 224 | |
| 225 | thread = threading.Thread(target=write_blocking_call) |
| 226 | thread.start() |
nothing calls this directly
no test coverage detected