I've made a little post just to create some contex...
# arrow
h
I've made a little post just to create some context... https://www.msec.it/blog/self-contained-example-of-testing-with-modules-and-arrow-fx/ I'm going to open a PR for this hopefully today
s
testScenario could be a presenter function? The activity call that function like....
Copy code
presenter.testScenario(State(mapOf("abc" to UserProfile("testName")), emptyList()), Env::lookedUpProfile)
??
s
You can also use the concurrency features of
IO
to compose it with your UI program. Work in
suspend fun renderUserProfile(profile: UserProfile): Unit
in somewhere and you can use
continueOn(dbContext)
to switch between threads. Or any other
CoroutineContext
.
If I have time this weekend I’ll try to come up with an example
s
Thank you. I will try that.
s
If you have any questions I'd love to help