Vladas
12/30/2022, 11:38 AMVladas
12/30/2022, 11:41 AMfun main() {
GlobalScope.launch (Dispatchers.Default){
var i = 0
while (true){
println(Count ${i++}")
delay(10_000)
}
}
}
now load it twice inside html
<script src="bundle2.js"></script>
<script src="bundle2.js"></script>
only the first one stays. Second stops with exception.