Questions tagged [kotlin-1.5]
2 questions
                    
                    4
                    
            votes
                
                1 answer
            
        Kotlin 1.5 Channel trySendBlocking() vs trySend()
Migrating to Kotlin 1.5, I've stumbled upon an issue with the Channel's new trySendBlocking() method.
So, we have an actor returning a SendChannel, Command being our own data class.
When sending commands to the actor in Kotlin 1.4, we used… 
        
        gpo
        
- 3,388
 - 3
 - 31
 - 53
 
                    1
                    
            vote
                
                2 answers
            
        Kotlin 1.5.0 NPE when properly destroying a WebView
My app destroys webviews as per the following (from here).
 parentConstraintLayout.removeView(webView)
 webView.apply{
     clearHistory()
     clearCache(true)
     loadUrl("about:blank")
     onPause()
     removeAllViews()
 }
This has been…
        
        user1114
        
- 1,071
 - 2
 - 15
 - 33