This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it(@"should propagate disposal to signals upstream of a +merge: to which it is subscribed when it completes", ^{ | |
__block BOOL disposed1 = NO; | |
__block BOOL disposed2 = NO; | |
RACSignal *upstream1 = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> _) { | |
return [RACDisposable disposableWithBlock:^{ | |
disposed1 = YES; | |
}]; | |
}]; | |
RACSignal *upstream2 = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> _) { | |
return [RACDisposable disposableWithBlock:^{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
class Node: | |
def __init__(self, value=None, children=None): | |
self.value = value | |
self.children = children or [] | |
self.visited = False | |
def make_graph(): | |
graph = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
class Node: | |
def __init__(self, value=None, children=None): | |
self.value = value | |
self.children = children or [] | |
self.visited = False | |
def make_graph(): | |
graph = {} |
OlderNewer