This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"configuration": { | |
"request": "launch", | |
"name": "Debug mocha Test", | |
"type": "node", | |
"program": "${workspaceRoot}/node_modules/mocha/bin/mocha", | |
"env": { | |
"NODE_ENV": "test" | |
}, | |
"args": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ExperimentalCoroutinesApi | |
@FlowPreview | |
class MentionsRepository( | |
private val middleEnd: MiddleEnd, | |
private val mentionsDao: MentionDao, | |
private val mapper: MentionsMapper | |
) { | |
private val _mentions = MutableSharedFlow<DataState<List<MentionDisplayModel>>>() | |
val mentions = _mentions.asSharedFlow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ExperimentalCoroutinesApi | |
@FlowPreview | |
class MentionsRepository( | |
private val middleEnd: MiddleEnd, | |
private val mentionsDao: MentionDao, | |
private val mapper: MentionsMapper | |
) { | |
private val mentionsBroadcastChannel = BroadcastChannel<DataState<List<MentionDisplayModel>>>(Channel.BUFFERED) |