Call a function asynchronously without interrupting current synchronous execution, even if the function was originally synchronous.
import {callAsynchronously} from '@augment-vir/common';console.info('1');const later = callAsynchronously(() => { console.info('3');});console.info('2');await later;// logs 1,2,3 in numeric order Copy
import {callAsynchronously} from '@augment-vir/common';console.info('1');const later = callAsynchronously(() => { console.info('3');});console.info('2');await later;// logs 1,2,3 in numeric order
@augment-vir/common
Call a function asynchronously without interrupting current synchronous execution, even if the function was originally synchronous.