Skip to content

Instantly share code, notes, and snippets.

@fmo91
Created February 12, 2017 06:40
Show Gist options
  • Save fmo91/bae07afe7d64e803e1abb8ba337487cc to your computer and use it in GitHub Desktop.
Save fmo91/bae07afe7d64e803e1abb8ba337487cc to your computer and use it in GitHub Desktop.
Sample Task implementation
//
// Task.swift
//
// Created by Fernando Ortiz on 2/11/17.
//
import Foundation
import RxSwift
class Task<Input, Output> {
func perform(_ element: Input) -> Observable<Output> {
fatalError("This must be implemented in subclasses")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment