Open Silvea12 opened 2 months ago
Worth a note: this was encountered at first when doing loading screen stuff with server functions and use_server_future()
- but this is a more minimal and targeted sample. The broken bit is unrelated to server fns.
@jkelleyrtp it seems the bug is not fixed. Tested with git 821a650f775526847158f3109a2b2b55aa3aa6bc, same test code as above.
Problem
When setting a signal in a
spawn_forever()
(and even a regularspawn()
, or component async fn), if it is also used by a resource, it cancels the future erroneously.Steps To Reproduce
Note: gloo_timers here is just as a simple await point, this occurs with server functions and all other operations that yield to the async runtime. Steps to reproduce the behavior:
Expected behavior
Resulting behavior
Environment:
Questionnaire