I try to find a way to yield custom fiber without throw exception, is it possible ?

I need make sure the scope guard is executed and the resource will auto release relay on scope(exit).

After fiber yield, the spoke guard is not able to execute, unless I throw a exception in Fiber. I am look if there is some hack method to make the fiber Interrupted at any time with scope(exit) code executed.



Reply via email to