Numpy and Arrays in Js
ASYNCHRONOUS FUNCTIONS
In Python 3.4+, asynchronous functions are supported by the asyncio library.
Topic | JS | Python |
---|---|---|
Define async named function | async function fnName(params) {…} | async def fnName(p) |
Define async anonymous function | const fnName = async (params) => {…} | not supported |
Async call with await | const result = await name(args); | result = await name(ar) |
Async call with then & catch | name(args).then(result => {…}).catch(err => { …}); | not supported |
Feedback?