From d8bfa7def7e698c2c70cc7ae8db273d41e68df47 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 16 Jan 2025 08:44:24 +0100 Subject: [PATCH] disposers.md: Add a parameter to MessageBus.connect() for clarity There is an actual method without parameters. --- topics/basics/disposers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/basics/disposers.md b/topics/basics/disposers.md index 0f36d3c12..46be54e89 100644 --- a/topics/basics/disposers.md +++ b/topics/basics/disposers.md @@ -168,7 +168,7 @@ Using such methods is always preferable to removing listeners explicitly from th To choose the correct parent disposable, use the guidelines from the previous section. The same rules apply to [message bus](messaging_infrastructure.md) connections. -Always pass a parent disposable to `MessageBus.connect()`, and make sure it has the shortest possible lifetime. +Always pass a parent disposable to `MessageBus.connect(parentDisposable)`, and make sure it has the shortest possible lifetime. ### Determining Disposal Status You can use `Disposer.isDisposed()` to check whether a `Disposable` has already been disposed.