Skip to main content

Callback Functionfunction to call later (ie pass into Higher-Order Function)

aka Callback, Callback-Fn, Callback-Functions, Call-After-Function

References

  1. Callback QueueData structure "todo" list of Callback Function to await execution

  2. **Event Loop** ↔ (mechanism) to orchestrate Non-Blocking Concurrency Model by manageCallback Functions between Callback Queue& Call Stack, to await execute

  3. .catch()Chain Callback to handle Promise Error propagation

  4. .finally()Chain Callback to call at end, regardless of Fullfill or Reject

  5. Target PhaseEvent handle at target; executes Callback Functions attach to Event Listener

  6. Concurrency Model ↔ (mechanism) to achieve Concurrency for JS Engine via Event Loop, Callback Queue & Callback Function

  7. Callback Hell ↔ Deep nested Callback 🍜👨‍💻

  8. assert.throws()assert Static Method to complain if Callback Function Parameter does not throw Exception

  9. HANDLERCallback Function to execute when PATH matches

  10. Event-Driven ↔ (model) to listen/respond async events via Callback Function

  11. HandlerCallback to run in response to Event Trigger

  12. Currier Functionfunction to pass/return another Callback Fn

  13. useCallback()Memoizing Hook to Memoize Callback for given Deps Array

  14. onAuthStateChanged() ↔ to trigger Callback on auth state changed (on Firebase Backend)

  15. .then()async Chain Method to execute Callback on Fullfill, auto-pass Promise Value as arg

  16. Event HandlerCallback to run in response to Event Signal

  17. Function TypeType to annotate Methods & Callback Function with implicit return of any

  18. Higher-Order Functionfn to receive Callback arg, to return fn, or both

  19. EffectCallback to run inside function, under certain conditions

  20. Inversion of ControlDesign Pattern to invert Control Flow to Callback to increase Modularity & decouple Deps ??

  21. MicrotaskCallback to defer fn after parent EC popped off Call Stack

  22. TaskCallback in Task Queue to execute sequentially at Tick start until empty. Can enqueue more ♾ & execute in same Tick!