Pulls off an io queue to write contents to a file :param fileobj: The file handle to write content to :param data: The data to write :param offset: The offset to write the data to.
(self, fileobj, data, offset)
| 760 | |
| 761 | class IOWriteTask(Task): |
| 762 | def _main(self, fileobj, data, offset): |
| 763 | """Pulls off an io queue to write contents to a file |
| 764 | |
| 765 | :param fileobj: The file handle to write content to |
| 766 | :param data: The data to write |
| 767 | :param offset: The offset to write the data to. |
| 768 | """ |
| 769 | fileobj.seek(offset) |
| 770 | fileobj.write(data) |
| 771 | |
| 772 | |
| 773 | class IOStreamingWriteTask(Task): |