Created
December 28, 2020 15:04
-
-
Save narodnik/86436f386953d35c0be238a2365ae382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let quit_send = self.quit_send.clone(); | |
io.add_method("quit", move |_| { | |
let quit_send = quit_send.clone(); | |
async move { | |
quit_send.send(()).await; | |
Ok(jsonrpc_core::Value::Null) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment