Skip to content

Commit d266917

Browse files
authored
Merge pull request #63 from atolab/lifetime_removal
docs: add a notice about entity lifetime parameter removal
2 parents 1e08474 + c44aa0d commit d266917

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/migration_1.0/Rust.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ publisher.put(buf).wait().unwrap();
8181

8282
## `Session` is now clonable and can be closed easily
8383

84-
`Session` implements `Clone` now, so there is no more need to wrap it into an `Arc<Session>`, and `Session::into_arc` has been deprecated. All the session methods, except `Session::close`, works like before, so only the session type will would to be changed.
84+
`Session` implements `Clone` now, so there is no more need to wrap it into an `Arc<Session>`, and `Session::into_arc` has been deprecated. All the session methods, except `Session::close`, works like before, so only the session type need to be changed.
85+
<br>
86+
As a side effect, `Subscriber` and `Queryable` no longer have a generic lifetime parameter. `Publisher` also looses one of its lifetime parameters, to keep only the one of its key expression.
8587

8688
The session is now closed automatically when the last `Session` instance is dropped, **even if publishers/subscribers/etc. are still alive**. Session can also be manually closed using `Session::close`, which now takes an immutable reference, so it can be called anytime, even if publishers/subscribers/etc. are still alive.
8789
<br>

0 commit comments

Comments
 (0)