Skip to content

Convert Shared<T> to Shared<T?> #3169

Closed Answered by paulofaria
paulofaria asked this question in Q&A
Discussion options

You must be logged in to vote

Explicitly setting the type to Shared<T?> was the solution to use the correct overload. Something like this:

let sharedOptionalValue: Shared<T?> = sharedValue.wrappedInOptional

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulofaria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant