UNPKG

kafka-ts

Version:

**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.

10 lines (9 loc) 278 B
/// <reference types="node" /> import EventEmitter from 'events'; export declare class Lock extends EventEmitter { private locks; constructor(); acquire(keys: string[], callback: () => Promise<void>): Promise<void>; private acquireKey; private releaseKey; }