Get started with async CDN
MIT licensed
Async library: Writes non-blocking I/O code with callbacks or Promises.
Tags:- async
- callback
- utility
- module
Stable version
Copied!
How to start using async CDN
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.cdnhub.io/async/3.2.5/async.min.js"></script>
<script>
async function fetchData() {
const promise1 = fetch('https://jsonplaceholder.typicode.com/todos/1');
const promise2 = fetch('https://jsonplaceholder.typicode.com/todos/2');
const [data1, data2] = await Promise.all([promise1, promise2]);
return { data1, data2 };
}
fetchData()
.then(result => {
console.log('Fetched data:', result);
})
.catch(error => {
console.error('Error:', error);
});
</script>
</head>
<body>
</body>
</html>
Copied!
Copied!
All versions
0.1.0
0.1.1
0.1.10
0.1.11
0.1.12
0.1.13
0.1.14
0.1.15
0.1.16
0.1.17
0.1.18
0.1.19
0.1.2
0.1.20
0.1.21
0.1.22
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.2.0
0.2.1
0.2.10
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.3.0
0.4.0
0.4.1
0.5.0
0.6.0
0.6.1
0.6.2
0.7.0
0.8.0
0.9.0
0.9.2
1.0.0
1.1.0
1.1.1
1.2.0
1.2.1
1.22
1.3.0
1.4.0
1.4.1
1.4.2
1.5.0
1.5.1
1.5.2
2.0.0
2.0.0-alpha.0
2.0.0-rc.1
2.0.0-rc.2
2.0.0-rc.3
2.0.0-rc.4
2.0.0-rc.5
2.0.0-rc.6
2.0.1
2.1.0
2.1.1
2.1.2
2.1.4
2.1.5
2.2.0
2.3.0
2.4.0
2.4.1
2.5.0
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
3.0.0
3.0.1
3.0.1-0
3.1.0
3.1.1
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
*** 3.2.6