MCPcopy Create free account
hub / github.com/alibaba/async_simple / __init__

Method __init__

dbg/LazyStack.py:83–93  ·  view source on GitHub ↗
(self, task_addr)

Source from the content-addressed store, hash-verified

81
82class StacklessCoroutineFrame(CoroutineFrame):
83 def __init__(self, task_addr):
84 super(StacklessCoroutineFrame, self).__init__(task_addr)
85
86 self.resume_addr_size = types.long_pointer_size
87 self.destroy_addr_size = types.long_pointer_size
88
89 self.promise_type_addr = self.promise_base_addr
90 self.destroy_addr = self.promise_type_addr - self.destroy_addr_size
91 self.resume_addr = self.destroy_addr - self.resume_addr_size
92 self.frame_addr = self.resume_addr
93 self.other_fields = self.continuation_addr + types.continuation_size
94
95class StacklessCoroutineFrameDecorator(FrameDecorator):
96 def __init__(self, frame, coro_frame):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected