/**
 * @license Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md.
 */

/**
 * Creates a promise that resolves after the specified timeout.
 *
 * @param ms - The timeout in milliseconds
 * @returns A promise that resolves after the specified timeout
 */
export function timeout( ms ) {
	return new Promise( resolve => setTimeout( resolve, ms ) );
}
