mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
242 B
TypeScript
14 lines
242 B
TypeScript
import * as sequester from "sequester";
|
|
|
|
function cb() {};
|
|
|
|
{
|
|
const lock = sequester.createLock();
|
|
lock.share(cb);
|
|
lock.exclude(cb);
|
|
const a: number = lock.count;
|
|
lock.unlock();
|
|
lock.downgrade();
|
|
lock.dispose();
|
|
}
|