-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suspend
. (GC is disabled in the process.)
#134
Conversation
If it's an either or situation (either suspend or GC), then perhaps there should be a flag for people not using suspend (or not requiring GC). Or does that not make sense. |
As long as developers don't use suspend in their code, they have full GC support. Is this what you have in mind? |
Something like this, though it could be a flag that turns on support for suspend (and off GC support). |
It's already the case now. GC is disabled for one specific actor from the moment it calls suspend, then it's turned on when that msg runs to completion. Maybe the commit msg is misleading? |
Your commit message is fine. |
Love your commit, it removes more things than it adds! As a side note, it would be good if we keep a standard when removing last spaces, either we leave them all or we remove them all. Not that it's an important question to address here, but looks like modifications in the code when they are not relevant. I'll check your code as soon as I arrive to the office |
Has anyone else tested this PR? If it's working fine, I would move on to |
I'll give it a test. But feel free to move on anyway. |
Looks good. Runs fine on my machine. |
started with the code review now! the suspend test passes, let's look at the code |
Add `suspend`. (GC is disabled in the process.)
Tested combinations:
My only comment is that in |
Maybe Albert should be reminded not to branch encore but rather the do a private branch, unless he wants to buy cake for everyone. (If @supercooldave can do things properly, anyone can!) |
👍 |
Mikael @EagiZ has already been using this for his project work (code larger than test cases) and it does what it should. Great work! |
Similar to futures, suspend has support for both eager and lazy as well. lazy is used by default.