예제 #1
0
 def foo(self, one, two=None):
     if not one:
         yield "Nope", None
     encargs = [('one', mangle(one),), ('two', mangle(two),)]
     encresref = future()
     yield encargs, encresref
     yield unmangle(encresref.value)
예제 #2
0
 def bar(self, b, a):
     encresref = peer.future()
     yield [(
         'b',
         mangle(b),
     ), (
         'a',
         mangle(a),
     )], encresref
     yield unmangle(encresref.value)
예제 #3
0
 def foo(self, one, two=None):
     if not one:
         yield "Nope", None
     encargs = [(
         'one',
         mangle(one),
     ), (
         'two',
         mangle(two),
     )]
     encresref = peer.future()
     yield encargs, encresref
     yield unmangle(encresref.value)
예제 #4
0
 def bar(self, b, a):
     encresref = future()
     yield [('b', mangle(b),), ('a', mangle(a),)], encresref
     yield unmangle(encresref.value)