Skip to content

Commit 0235b92

Browse files
committed
[docs] clarify same-device acquisition and scanner cleanup
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 196372c commit 0235b92

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎docs/specifications/App/TDD.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,14 @@ UI reads down (watch providers) and writes up (call `Connection` methods / DAO m
508508

509509
**Owned-link teardown clarification (2026-09-06, FR-CONNECT-7).**
510510

511+
The same physical device may be represented by more than one asynchronous
512+
factory result. A replacement for the same device ID must wait until an older
513+
pending acquisition and its stale-result teardown have finished before invoking
514+
another factory for that ID. Wrapper identity alone is not physical ownership.
515+
Manager disposal must also stop its owned scanner, including a scan still waiting
516+
for adapter readiness. A native link's connection-state subscription must be
517+
released even when physical disconnect fails; the physical error remains visible.
518+
511519
`PbleConnection.fromLink` owns the exact supplied `BleLink` and the
512520
`BleByteTransport` it constructs. Its first `dispose()` retires the connection,
513521
removes link/event listeners, aborts in-flight work, calls that link's

0 commit comments

Comments
 (0)