Skip to content

Commit

Permalink
add method to immediatly unexport a pin
Browse files Browse the repository at this point in the history
Should reduce human errors
  • Loading branch information
duart38 committed Mar 20, 2022
1 parent 923cd49 commit 50e3a5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50e3a5c

Please sign in to comment.