You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have small wrapper for concurentMap
if i put data to map and then get from same "for" i can getting value by key
but if i get value from other "for", map is empty!
can somebody explain me, how it works?
i tried many variants to get value by key from different "for", but it doesnt works
This code in MainListener doesn't work as expected _currentChannels.add(id, Ref.make(channel)) *> ZIO.debug("connection accepted") *> _currentChannels.get(id)
_currentChannels.get(id) -> this function does not find the value by key
type ChannelsMap = UIO[Ref[ZIO[Any, Nothing, ConcurrentMap[String, UIO[Ref[AsynchronousSocketChannel]]]]]]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i have small wrapper for concurentMap
if i put data to map and then get from same "for" i can getting value by key
but if i get value from other "for", map is empty!
can somebody explain me, how it works?
i tried many variants to get value by key from different "for", but it doesnt works
This code in MainListener doesn't work as expected
_currentChannels.add(id, Ref.make(channel)) *> ZIO.debug("connection accepted") *> _currentChannels.get(id)
_currentChannels.get(id) -> this function does not find the value by key
type ChannelsMap = UIO[Ref[ZIO[Any, Nothing, ConcurrentMap[String, UIO[Ref[AsynchronousSocketChannel]]]]]]
And main object
Beta Was this translation helpful? Give feedback.
All reactions