We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Occasionally, the 'main stream' closes unexpectedly.
To Reproduce Steps to reproduce the behavior:
val scope = CoroutineScope(Dispatchers.Default) val store = StoreBuilder.from<Int, String>(Fetcher.of { key -> delay(10) //simulate long network request "$key :: " + Random.nextInt() }).build() scope.launch { store.stream(StoreReadRequest.cached(1, false)) //main stream .onCompletion { println("Unexpected !!!" + it) } .collect { println("result" + it) } } (1 .. 50).onEach { scope.launch { while (isActive) { store.stream(StoreReadRequest.fresh(1)) .filterNot { it is StoreReadResponse.Loading } .firstOrNull() delay(150) } } }
Expected behavior Calling 'fresh' does not cause the 'main stream' to close
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Occasionally, the 'main stream' closes unexpectedly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Calling 'fresh' does not cause the 'main stream' to close
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: