We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064ef74 commit ae2bd55Copy full SHA for ae2bd55
src/zend/fibers.rs
@@ -86,10 +86,7 @@ impl EventLoop {
86
}
87
88
pub fn suspend() {
89
- EVENTLOOP.with_borrow_mut(|c| {
90
- let c = c.as_mut().unwrap();
91
- call_user_func!(c.get_current_suspension).unwrap().try_call_method("suspend", vec![]).unwrap();
92
- });
+ call_user_func!(Function::try_from_method("\\Revolt\\EventLoop", "getSuspension").unwrap()).unwrap().try_call_method("suspend", vec![]).unwrap();
93
94
95
pub fn get_sender(&self) -> Sender<u64> {
0 commit comments