mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement separated handler for request
This commit is contained in:
parent
225b13270a
commit
6f16ccaa2d
4 changed files with 62 additions and 20 deletions
|
|
@ -73,7 +73,9 @@ impl Client {
|
|||
time: now(),
|
||||
value: query.to_string(),
|
||||
});
|
||||
Request::route(self, query, None, self.new_cancellable(), callback);
|
||||
Request::parse(query, None)
|
||||
.unwrap() // @TODO
|
||||
.handle(self, self.new_cancellable(), callback);
|
||||
}
|
||||
|
||||
/// Get new [Cancellable](https://docs.gtk.org/gio/class.Cancellable.html) by cancel previous one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue