(node: ReactiveNode)
| 499 | * Disconnect this consumer from the graph. |
| 500 | */ |
| 501 | export function consumerDestroy(node: ReactiveNode): void { |
| 502 | if (consumerIsLive(node)) { |
| 503 | // Drop all connections from the graph to this node. |
| 504 | let link = node.producers; |
| 505 | while (link !== undefined) { |
| 506 | link = producerRemoveLiveConsumerLink(link); |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | // Truncate all the linked lists to drop all connection from this node to the graph. |
| 511 | node.producers = undefined; |
| 512 | node.producersTail = undefined; |
| 513 | node.consumers = undefined; |
| 514 | node.consumersTail = undefined; |
| 515 | } |
| 516 | |
| 517 | /** |
| 518 | * Add `consumer` as a live consumer of this node. |
no test coverage detected
searching dependent graphs…