(thenable: Thenable<T>)
| 764 | } |
| 765 | |
| 766 | export function unwrapThenable<T>(thenable: Thenable<T>): T { |
| 767 | const index = thenableIndexCounter; |
| 768 | thenableIndexCounter += 1; |
| 769 | if (thenableState === null) { |
| 770 | thenableState = createThenableState(); |
| 771 | } |
| 772 | return trackUsedThenable(thenableState, thenable, index); |
| 773 | } |
| 774 | |
| 775 | export function readPreviousThenableFromState<T>(): T | void { |
| 776 | const index = thenableIndexCounter; |
no test coverage detected