@@ -8,7 +8,6 @@ import androidx.appcompat.widget.SearchView
88import androidx.core.widget.doOnTextChanged
99import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
1010import kotlinx.coroutines.Dispatchers
11- import kotlinx.coroutines.ExperimentalCoroutinesApi
1211import kotlinx.coroutines.channels.awaitClose
1312import kotlinx.coroutines.flow.Flow
1413import kotlinx.coroutines.flow.callbackFlow
@@ -23,7 +22,6 @@ internal fun checkMainThread() {
2322 }
2423}
2524
26- @ExperimentalCoroutinesApi
2725@CheckResult
2826fun EditText.firstChange (): Flow <Unit > {
2927 return callbackFlow {
@@ -39,7 +37,6 @@ fun EditText.firstChange(): Flow<Unit> {
3937 }.take(1 )
4038}
4139
42- @ExperimentalCoroutinesApi
4340@CheckResult
4441fun SwipeRefreshLayout.refreshes (): Flow <Unit > {
4542 return callbackFlow {
@@ -50,7 +47,6 @@ fun SwipeRefreshLayout.refreshes(): Flow<Unit> {
5047 }
5148}
5249
53- @ExperimentalCoroutinesApi
5450@CheckResult
5551fun View.clicks (): Flow <View > {
5652 return callbackFlow {
@@ -67,7 +63,6 @@ data class SearchViewQueryTextEvent(
6763 val isSubmitted : Boolean ,
6864)
6965
70- @ExperimentalCoroutinesApi
7166@CheckResult
7267fun SearchView.queryTextEvents (): Flow <SearchViewQueryTextEvent > {
7368 return callbackFlow {
@@ -109,7 +104,6 @@ fun SearchView.queryTextEvents(): Flow<SearchViewQueryTextEvent> {
109104 }
110105}
111106
112- @ExperimentalCoroutinesApi
113107@CheckResult
114108fun EditText.textChanges (): Flow <CharSequence ?> {
115109 return callbackFlow {
0 commit comments