-
Notifications
You must be signed in to change notification settings - Fork 2
Improve the experience of unsubscribing from within a listener
Open
Labels
breakingBackwards incompatible changes made to the public API.Backwards incompatible changes made to the public API.enhancementNew feature or improved functionality.New feature or improved functionality.
Metadata
Metadata
Assignees
Labels
breakingBackwards incompatible changes made to the public API.Backwards incompatible changes made to the public API.enhancementNew feature or improved functionality.New feature or improved functionality.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently you have to capture the return value of
subscribefrom within the listener, which Swift doesn't allow, forcing you to store it in a separate optional variable and then unwrap inside the callback. This is not great API. We should consider switching to something like the approach used by WIP ably-swift (a user-created signal that's passed in to thesubscribecall; the signal then has anunsubscribemethod).┆Issue is synchronized with this Jira Task by Unito