Skip to content

Run notice handlers in their own threads#46

Open
daurnimator wants to merge 3 commits intoarcapos:masterfrom
daurnimator:noticeprocessor-tidy
Open

Run notice handlers in their own threads#46
daurnimator wants to merge 3 commits intoarcapos:masterfrom
daurnimator:noticeprocessor-tidy

Conversation

@daurnimator
Copy link
Copy Markdown
Contributor

@daurnimator daurnimator commented Sep 1, 2017

  • No references in registry to clean up
  • No longer throw errors across notice processing (only safe functions used outside of pcall)
  • Won't try and run handlers in dead coroutine (as always run in dedicated coroutine inside a pcall)
  • Stores coroutine reference in uservalue

Fixes issues mentioned here: b1bf4a6

  - No references in registry to clean up
  - No longer throw errors across notice processing (only safe functions used outside of pcall)
  - Won't try and run handlers in dead coroutine (as always run in dedicated coroutine inside a pcall)
  - Stores coroutine reference in uservalue
This makes repeatedly setting the handlers cheap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant