Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Oct 23, 2023
1 parent 62cf8dd commit ecca4c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ final class CompletionSuggestionService: CompletionSuggestionServiceProtocol {
return membersSuggestion
}
}
// We only debounce if the suggestion is nil
.map { [weak self] value in
let delay = self?.suggestionTriggerSubject.value == nil ? 0.0 : 0.5
return Just(value).delay(for: .seconds(delay), scheduler: DispatchQueue.main)
Expand Down

0 comments on commit ecca4c2

Please sign in to comment.