Skip to content

Commit

Permalink
Merge branch 'master' into detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkadii Ivanov committed Oct 16, 2019
2 parents 1824045 + 2f3c89b commit e224c2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.badoo.reaktive.utils.atomic.AtomicInt
/**
* Emit only the first [limit] items emitted by source.
*/
fun <T> Observable<T>.take(limit: Int): Observable<T?> {
fun <T> Observable<T>.take(limit: Int): Observable<T> {
require(limit >= 0) { "count >= 0 required but it was $limit" }

return observable { emitter ->
Expand Down

0 comments on commit e224c2f

Please sign in to comment.