Skip to content

Commit b2cedd5

Browse files
committed
store: Add dartdoc on UpdateMachine.dispose
We'll add more to this soon.
1 parent 2609910 commit b2cedd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/model/store.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@ class UpdateMachine {
957957
await NotificationService.registerToken(store.connection, token: token);
958958
}
959959

960+
/// Cleans up resources.
961+
///
962+
/// After this is called, the instance is not in a usable state
963+
/// and should be abandoned.
960964
void dispose() { // TODO abort long-poll and close ApiConnection
961965
NotificationService.instance.token.removeListener(_registerNotificationToken);
962966
}

0 commit comments

Comments
 (0)