UNPKG

agenda

Version:

Light weight job scheduler for Node.js

17 lines 660 B
import { Agenda } from "."; /** Close the db and it's underlying connections * Only works if agenda was instantiated without preconfigured mongoDb instance. * If the mongoDb instance was supplied during instantiation or via agenda.mongo, this function will do nothing and return agenda anyway. * @name Agenda#close * @function * @param [option] {{ force: boolean }} Force close, emitting no events * * * @caller client code * * @link https://mongodb.github.io/node-mongodb-native/2.0/api/Db.html#close */ export declare const close: (this: Agenda, option?: { force: boolean; } | undefined) => Promise<Agenda>; //# sourceMappingURL=close.d.ts.map