Created
June 19, 2021 16:32
-
-
Save dietercastel/adb17720cec660b3648f8d75081a9163 to your computer and use it in GitHub Desktop.
Naive throttling map function
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
function tmap(fn,arr,delay) | |
res = [] | |
for a in arr | |
push!(res,fn(a)) | |
sleep(delay) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment