Skip to content

Fix sleeping code under spawn() triggering SpacemanDMM_should_not_sleep#177

Merged
SpaceManiac merged 4 commits intoSpaceManiac:masterfrom
Cyberboss:SpawnNotSleep
Jul 3, 2020
Merged

Fix sleeping code under spawn() triggering SpacemanDMM_should_not_sleep#177
SpaceManiac merged 4 commits intoSpaceManiac:masterfrom
Cyberboss:SpawnNotSleep

Conversation

@Cyberboss
Copy link
Copy Markdown
Contributor

@Cyberboss Cyberboss commented Apr 9, 2020

Fixes #175

Copy link
Copy Markdown
Collaborator

@spookydonut spookydonut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowing spawns in should not sleep i feel defeats the purpose of the lint but making it a config option to disable this would be ok

Copy link
Copy Markdown
Owner

@SpaceManiac SpaceManiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I lean towards thinking of spawn as more of a addtimer type call that happens to be builtin - it doesn't put the current call stack on hold, so it's not "sleeping" for purposes of the lint. In that lens this seems OK

@SpaceManiac SpaceManiac merged commit 36e69a3 into SpaceManiac:master Jul 3, 2020
@SpaceManiac SpaceManiac changed the title Fixes sleeping code under spawn() triggering SpacemanDMM_should_not_sleep Fix sleeping code under spawn() triggering SpacemanDMM_should_not_sleep Jul 3, 2020
@SpaceManiac SpaceManiac added this to the suite v1.5 milestone Jul 11, 2020
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.

should_not_sleep checks detect sleeps in calls from spawn blocks

3 participants