Skip to content

支持自定并发数功能

Latest
Compare
Choose a tag to compare
@zhengjunxin zhengjunxin released this 20 May 02:35
· 7 commits to master since this release

默认并发数为 10,但支持自定义并发数

import {request, setConfig} from './wx-promise-request';

setConfig({
    concurrency: 5,
})
request({
  url: 'test.php',
})
.then(res => console.log(res))
.catch(error => console.log(error));