mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
enshort cancellable update
This commit is contained in:
parent
675e4f328c
commit
f2f2ec9bd2
@ -186,16 +186,13 @@ impl Page {
|
||||
// Reset widgets
|
||||
self.input.unset();
|
||||
|
||||
// Cancel previous async loading operations
|
||||
{
|
||||
let cancellable = self.cancellable.borrow();
|
||||
|
||||
if !cancellable.is_cancelled() {
|
||||
cancellable.cancel();
|
||||
}
|
||||
// Cancel previous async operations
|
||||
let cancellable = self.cancellable.take();
|
||||
if !cancellable.is_cancelled() {
|
||||
cancellable.cancel();
|
||||
}
|
||||
|
||||
// Create new cancellable pointer
|
||||
// Create new cancellable
|
||||
self.cancellable.replace(Cancellable::new());
|
||||
|
||||
// Create shared variant value
|
||||
|
Loading…
x
Reference in New Issue
Block a user