From 50e3a5c280ee70c2d07be06ea0ef56411edde274 Mon Sep 17 00:00:00 2001 From: duart38 Date: Sun, 20 Mar 2022 14:04:45 +0100 Subject: [PATCH] add method to immediatly unexport a pin Should reduce human errors --- mod.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mod.ts b/mod.ts index 7556f91..c008b4c 100644 --- a/mod.ts +++ b/mod.ts @@ -188,6 +188,15 @@ export class Pin { return Pin.unexport(this); } + /** + * Unexport the pin immediately after queening up the instruction. + * > This method calls ```executeInstructions``` + */ + async unexportImmediate(){ + Pin.unexport(this); + await executeInstructions(); + } + /** * Queues up an instruction to unexport the provided pin * @param pin