Skip to main content

asyncNoop

Async function that does nothing and returns Promise<void>.


Interface

const asyncNoop: () => Promise<void>

Usage

import { asyncNoop } from '@devgrace/utils';

const handleAsyncClick = (callback = asyncNoop) => {
callback();
};