* Schedules an update operation after a specified timeout.
( timeout: number, lDetails: LDeferBlockDetails, tNode: TNode, lContainer: LContainer, hostLView: LView<unknown>, )
| 396 | * Schedules an update operation after a specified timeout. |
| 397 | */ |
| 398 | function scheduleDeferBlockUpdate( |
| 399 | timeout: number, |
| 400 | lDetails: LDeferBlockDetails, |
| 401 | tNode: TNode, |
| 402 | lContainer: LContainer, |
| 403 | hostLView: LView<unknown>, |
| 404 | ): VoidFunction { |
| 405 | const callback = () => { |
| 406 | const nextState = lDetails[NEXT_DEFER_BLOCK_STATE]; |
| 407 | lDetails[STATE_IS_FROZEN_UNTIL] = null; |
| 408 | lDetails[NEXT_DEFER_BLOCK_STATE] = null; |
| 409 | if (nextState !== null) { |
| 410 | renderDeferBlockState(nextState, tNode, lContainer); |
| 411 | } |
| 412 | }; |
| 413 | return scheduleTimerTrigger(timeout, callback, hostLView[INJECTOR]); |
| 414 | } |
| 415 | |
| 416 | /** |
| 417 | * Checks whether we can transition to the next state. |
no test coverage detected