Skip to content

Instantly share code, notes, and snippets.

@lizixroy
lizixroy / RxSwift-article-13.swift
Created September 4, 2016 20:07
RxSwift-article-13.swift
func synchronizedUnsubscribe(disposeKey: DisposeKey) {
_lock.lock(); defer { _lock.unlock() }
_synchronized_unsubscribe(disposeKey)
}
func _synchronized_unsubscribe(disposeKey: DisposeKey) {
if _disposed {
return
}
class Example {
let name: String
int(name: String) {
self.name = name
}
}
class Example {
let name: String
int(name: String) {
self.name = name
}
}
Roy
Li
is
Pretty
Rad
class Vehicle {
var name: String
}
@lizixroy
lizixroy / 0.example.swift
Created September 8, 2016 02:15
This is another test
Roy
Li
is
Pretty
Rad
@lizixroy
lizixroy / 1.example.swift
Created September 8, 2016 02:15
This is another test
class Vehicle {
var name: String
}
@lizixroy
lizixroy / 0.hoopster.swift
Created September 8, 2016 02:16
this is another another test
Roy
Li
is
Pretty
Rad
@lizixroy
lizixroy / 0.roy.swift
Created September 8, 2016 02:31
Roy's test
Roy
Li
is
Pretty
Rad
@lizixroy
lizixroy / 1.roy.swift
Created September 8, 2016 02:31
Roy's test
class LogInViewModelTests: XCTestCase {
private let disposeBag = DisposeBag()
private let timeout = 1.0
var mockCellViewModelFactory: LabelAndTextFieldCellViewModelFactoryProtocol!
var mockLogInService: MockLogInService!
var logInViewModel: LogInViewModel!
override func setUp() {