Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static async queue(attachment: AttachmentImpl, names: string[], callBack: (counters: [string, number][]) => Promise):
Promise {
const events = new EventsImpl(attachment);
const { client } = attachment;
events.eventCallback = await fb.queueEvent(client.master!, attachment.attachmentHandle!, names, callBack);
return events;
}