Skip to content

Conversation

@Aseminaunz
Copy link

@Aseminaunz Aseminaunz commented Sep 10, 2025

Replaced by #140

Rendered

This proposal creates a new standard library function in coroutine:

function coroutine.noyield<A..., R...>(fn: (A...) -> R..., ...: A...): R...

It runs a function within the same thread as the caller, without allowing it to yield, reflecting it in coroutine.isyieldable() and causing coroutine.yield() to error.

@Aseminaunz Aseminaunz closed this Sep 10, 2025
@Aseminaunz Aseminaunz deleted the rfc-function-coroutine-noyielf branch September 10, 2025 23:40
@Aseminaunz Aseminaunz restored the rfc-function-coroutine-noyielf branch September 11, 2025 07:46
@Aseminaunz Aseminaunz deleted the rfc-function-coroutine-noyielf branch September 11, 2025 07:46
@Aseminaunz Aseminaunz changed the title RFC: coroutine.noyield() function [replaced] RFC: coroutine.noyield() function Sep 11, 2025
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