use debounce method in Rxjava to makes your app server HAPPY :D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Rx-Debounce

use debounce method in Rxjava to make your app server HAPPY :D

some functions like search and check sth like username or sth like this that need to send request to server a lot in short time , can be destructive , and sometimes maybe crash app, for a lot request that app want to send,

so with magic RxJava and that rich operators, we can improve this functions. one of this effective operator is debounce that is made for that problems that i said,

in this source , i use debounce operator for checking username field in database

the server side api is

public string checkUsername(string username)
        {
            bool u = db.Users.Any(x => x.User_Username == username);
            
            if(u)
            {
                return "valid";
            }
            else
            {
                return "invalid";
            }
        }

Used