title: RXSwift: Subscriber never gets call back
body: <p>I have this function:</p>
  
  <pre><code>    func makeRepoRequest() -&gt; Single&lt;[String: Any]&gt; {
          return Single&lt;[String: Any]&gt;.create {[weak self] observer in
              guard let something = self?.temp else {
                  let disposeBag = DisposeBag()
                  self?.getRepo("364").subscribe(onSuccess: { content in
                      observer(.success(content))
                  }, onError: { error in
                      observer(.error(error))
                  }).disposed(by: disposeBag)
                  return Disposables.create()
              }
              observer(.success(something))
              return Disposables.create()
  
          }
      }
  </code></pre>
  
  <p>is subscribe to this function:</p>
  
  <pre><code>    func getRepo(_ repo: String) -&gt; Single&lt;[String: Any]&gt; {
          return Single&lt;[String: Any]&gt;.create { single in
              print(repo)
              let url = "https://api.github.com/repositories?since=\(repo)"
              print(url)
              let task = URLSession.shared.dataTask(with: URL(string:url)!) { data, _, error in
                  if let error = error {
                      single(.error(error))
                      return
                  }
                  guard let data = data,
                      let json = try? JSONSerialization.jsonObject(with: data, options: []),
                      let result = json as? [String: Any] else {
                          let error = NSError(domain: "Decoding", code: 0, userInfo: nil)
                          single(.error(error))
                          return
                  }
  
                  single(.success(result))
              }
              task.resume()
              return Disposables.create()
          }
      }
  </code></pre>
  
  <p>but for some reason the subscription it never gets a call back. Any of you knows why the subscription never gets a call back?</p>
  
  <p>I'll really appreciate your help.</p>