@nodert-win8.1/windows.system.threading.core
Version:
Use the Windows.System.Threading.Core UWP API directly from Node.js
33 lines (18 loc) • 800 B
TypeScript
declare module "windows.system.threading.core" {
export class SignalNotifier {
constructor();
static attachToEvent(name: String, handler: Object): SignalNotifier;
static attachToEvent(name: String, handler: Object, timeout: Number): SignalNotifier;
static attachToSemaphore(name: String, handler: Object): SignalNotifier;
static attachToSemaphore(name: String, handler: Object, timeout: Number): SignalNotifier;
enable(): void;
terminate(): void;
}
export class PreallocatedWorkItem {
constructor();
constructor(handler: Object);
constructor(handler: Object, priority: Number);
constructor(handler: Object, priority: Number, options: Number);
runAsync(callback: (error: Error) => void): void ;
}
}