You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know whether to add this or not, as with deferred events, the behaviour is a little more 'open in the air', if it was fired but it still didn't run still because it has been deferred, you can't tell if the handler will actually be run or not with a .Connected value.
It only gets actually disconnected after the handler runs, it just doesn't run the function you give it.
One solution, which was already a thing in older versions with :Wait, is disconnect as you fire the connection. Integrate it with the connection data, if that connection is supposed to be disconnected right away or not, only problem here is that it would require extra indexing which I'm not exactly interested by, but it should be a small cost to CPU so... it's up in the air.
This discussion was converted from issue #4 on November 03, 2021 07:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't know whether to add this or not, as with deferred events, the behaviour is a little more 'open in the air', if it was fired but it still didn't run still because it has been deferred, you can't tell if the handler will actually be run or not with a
.Connected
value.It only gets actually disconnected after the handler runs, it just doesn't run the function you give it.
One solution, which was already a thing in older versions with
:Wait
, is disconnect as you fire the connection. Integrate it with the connection data, if that connection is supposed to be disconnected right away or not, only problem here is that it would require extra indexing which I'm not exactly interested by, but it should be a small cost to CPU so... it's up in the air.Beta Was this translation helpful? Give feedback.
All reactions