Skip to content

Commit f8c5d15

Browse files
authored
Merge pull request #261 from arkivanov/update-samples-in-docs-about-object-Bootstrapper
Update samples in docs about object Bootstrapper
2 parents 8fff761 + 366ac4b commit f8c5d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ internal class CalculatorStoreFactory(private val storeFactory: StoreFactory) {
338338

339339
// ...
340340

341-
private object BootstrapperImpl : ReaktiveBootstrapper<Action>() {
341+
private class BootstrapperImpl : ReaktiveBootstrapper<Action>() {
342342
override fun invoke() {
343343
singleFromFunction { (1L..1000000.toLong()).sum() }
344344
.subscribeOn(computationScheduler)
@@ -382,7 +382,7 @@ internal class CalculatorStoreFactory(private val storeFactory: StoreFactory) {
382382

383383
// ...
384384

385-
private object BootstrapperImpl : SuspendBootstrapper<Action>() {
385+
private class BootstrapperImpl : SuspendBootstrapper<Action>() {
386386
override suspend fun bootstrap() {
387387
val sum = withContext(Dispatchers.Default) { (1L..1000000.toLong()).sum() }
388388
dispatch(Action.SetValue(sum))

0 commit comments

Comments
 (0)