-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设计一个函数,该函数的参数为可同时发送请求的大小,返回一个函数,该函数的参数为要请求的url。 实现的效果为,同时发送n个请求,当有请求返回后往请求队列里push新的请求,并输出刚刚结束的请求的返回值。 #143
Comments
function scheduler(tasks, max) {
|
思路仅供参考,每个request方法都支持promise回调,使用递归+队列,只考虑了成功态了
|
function scheduler(max) {
} |
No description provided.
The text was updated successfully, but these errors were encountered: