UNPKG

rvx

Version:

A signal based rendering library

8 lines (7 loc) 239 B
/** * Run an exclusive action for a specific purpose. * * @param key The key to identify the purpose. * @param action The action to run. */ export declare function exclusive<T>(key: unknown, action: () => T | Promise<T>): Promise<T>;