Skip to content

Commit

Permalink
add shutdown handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur committed Mar 6, 2024
1 parent 175dd22 commit 4cf9b4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/resources/bucket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class BucketResource extends SecureResource<BucketPermission> {
$p.ResourceDeclareRequest(id: resource, bucket: $p.BucketResource()));

registrationCompletion.complete(resource);

await channel.shutdown();
}

@override
Expand Down
2 changes: 2 additions & 0 deletions lib/src/resources/keyvalue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class KeyValueStoreResource extends SecureResource<KeyValueStorePermission> {
id: resource, keyValueStore: $p.KeyValueStoreResource()));

registrationCompletion.complete(resource);

await channel.shutdown();
}

@override
Expand Down
2 changes: 2 additions & 0 deletions lib/src/resources/queue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class QueueResource extends SecureResource<QueuePermission> {
$p.ResourceDeclareRequest(id: resource, queue: $p.QueueResource()));

registrationCompletion.complete(resource);

await channel.shutdown();
}

@override
Expand Down
2 changes: 2 additions & 0 deletions lib/src/resources/secret.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class SecretResource extends SecureResource<SecretPermission> {
$p.ResourceDeclareRequest(id: resource, secret: $p.SecretResource()));

registrationCompletion.complete(resource);

await channel.shutdown();
}

@override
Expand Down

0 comments on commit 4cf9b4d

Please sign in to comment.