Skip to content

Commit

Permalink
Refactoring Client for a better scope implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
geomagilles committed Sep 25, 2024
1 parent bcefe49 commit 09be271
Show file tree
Hide file tree
Showing 3 changed files with 389 additions and 288 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ class InfiniticClient(
private var isClosed: AtomicBoolean = AtomicBoolean(false)

// Scope used to asynchronously send message, and also to consumes messages
private val clientScope = CoroutineScope(Dispatchers.IO)
internal val clientScope = CoroutineScope(Dispatchers.IO)

private val dispatcher by lazy { ClientDispatcher(clientScope, consumer, producer) }
private val dispatcher by lazy { ClientDispatcher(clientScope, consumer, producer, logger) }

override suspend fun getName() = producer.getName()

Expand Down
Loading

0 comments on commit 09be271

Please sign in to comment.