def resolveSuggestions()

in src/main/scala/lang/Typeahead.scala [66:72]


  def resolveSuggestions(str: String): Future[List[TextSuggestionOption]] =
    resolver match {
      case list: List[TextSuggestionOption] =>
        Future.successful(list.filter { _.label.contains(str) })
      case resolverFn: (String => Future[List[TextSuggestionOption]]) =>
        resolverFn(str)
    }