/** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ namespace ImmediateScheduler { // Adds the function to the start of the "immediate queue" export async function first(f: () => T): Promise { return f(); } // Adds the function to the end of the "immediate queue" export async function last(f: () => T): Promise { return f(); } } export default ImmediateScheduler