Add async read

This commit is contained in:
Bjoern Kerler 2023-01-11 20:15:24 +01:00
commit a3b3856fdc
No known key found for this signature in database
GPG key ID: 52E823BB96A55380
2 changed files with 0 additions and 3 deletions

View file

@ -25,7 +25,6 @@ def writedata(filename, rq):
while True:
data = rq.get()
if data is None:
sys.stdout.flush()
break
pos += len(data)
wf.write(data)

View file

@ -2,7 +2,6 @@
# -*- coding: utf-8 -*-
# (c) B.Kerler 2018-2021 GPLv3 License
import logging
import sys
import time
import os
import hashlib
@ -26,7 +25,6 @@ def writedata(filename, rq):
while True:
data = rq.get()
if data is None:
sys.stdout.flush()
break
pos += len(data)
wf.write(data)