title: Replace Async Task with RxJava
body: <p>I have been trying to learn how to use <code>RXJava</code>, I was wondering how can I change the <code>AsyncTask</code> code below and use <code>RXJava</code>, is it possible. I am new to <code>RXJava</code> and since <code>AsyncTask</code> is being deprecated I wanted some help.</p>
  
  <pre><code> private static class AddTeamAsyncTask extends AsyncTask&lt;Team, Void, Void&gt; {
          private TeamDao teamDao;
           AddTeamAsyncTask(TeamDao teamDao) {
              this.teamDao = teamDao;
          }
  
          @Override
          protected Void doInBackground(Team... teams) {
              teamDao.addTeam(teams[0]);
              return null;
          }
      }
  </code></pre>