Skip to content

fix(lifecycle): make logout nonblocking - #379

Merged
Andiveli merged 3 commits into
betafrom
fix/nonblocking-logout
Aug 28, 2026
Merged

fix(lifecycle): make logout nonblocking#379
Andiveli merged 3 commits into
betafrom
fix/nonblocking-logout

Conversation

@Andiveli

Copy link
Copy Markdown
Owner

Closes #376

Summary

  • initiate remote logout without blocking the UI caller
  • enforce single-flight result delivery and bounded cleanup
  • coordinate reset generations to suppress stale results safely

Changes

File Change
whatsrust/lib/client_lifecycle.go Add asynchronous logout lifecycle and reset barriers
whatsrust/lib/client_lifecycle_test.go Cover success, failure, timeout, reset, callbacks, and concurrency

Test plan

  • Focused lifecycle tests passed
  • Reset interleaving test passed 100 consecutive runs
  • Full Go tests and race tests passed
  • gofmt and diff checks passed

Review workload

Exactly 400 changed lines; no size exception required.

Checklist

  • Linked approved issue
  • Conventional commit
  • No generated or unrelated changes

@Andiveli Andiveli added the type:bug Bug fix label Aug 28, 2026
docs(lifecycle): describe asynchronous logout
@Andiveli
Andiveli merged commit f79c655 into beta Aug 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant