Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

馃崉 docs: Add specification for LCB widget signals and events. #3495

Open
wants to merge 4 commits into
base: develop
Choose a base branch
Loading
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: Fix notes to "signal emission" section of signals spec.
Spotted by @livecodeali
  • Loading branch information
peter-b committed Jan 21, 2016
commit c2fbeaab751d1795a82377d724d6bbe29cdecd97
2 changes: 1 addition & 1 deletion 2 docs/specs/lcb-signals-and-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The `emit` statement does not return a value [5].

3. Although, initially, signal emission _could_ be implemented by iterating over registered signal handlers and calling them within the execution of the `emit` statement, this could easily lead to arbitrarily-deep signal emission chains going backwards and forwards between LCS and LCB contexts. By allowing signal emission to be delayed, this is avoided (the current stack can be allowed to unwind before signal dispatch is performed). Delaying signal handling also helps to reason about the safety of deleting a widget in response to receiving a signal from it.

4. Emitting a signal twice from the same handler - even with the same parameters - all of the handlers for that signal with
4. Emitting a signal twice from the same handler - even with the same parameters - will cause all of the handlers for that signal to be run twice.

5. This is a consequence of asynchronous signal handling.

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.