Last active
October 11, 2024 18:22
-
-
Save judfs/62febfd4a1f4b46fb4c59c948f5dd7ab to your computer and use it in GitHub Desktop.
clone psudeo code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open(path, 'r') | |
dsts = [open(it, 'w') for it in dst_paths] | |
nbuf = 1024 | |
while file_not_complete: | |
buffer = read_async(f, nbuf) | |
await all | |
for d in dsts: | |
d.write_async(buffer) | |
await all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment