… | |
… | |
155 | # call all destruction callbacks |
155 | # call all destruction callbacks |
156 | $_->(@{$self->{status}}) |
156 | $_->(@{$self->{status}}) |
157 | for @{(delete $self->{destroy_cb}) || []}; |
157 | for @{(delete $self->{destroy_cb}) || []}; |
158 | } |
158 | } |
159 | |
159 | |
160 | sub _do_trace { |
160 | sub _do_trace_sub { |
161 | $current->{_trace_cb}->(); |
161 | &{$current->{_trace_sub_cb}} |
|
|
162 | } |
|
|
163 | |
|
|
164 | sub _do_trace_line { |
|
|
165 | &{$current->{_trace_line_cb}} |
162 | } |
166 | } |
163 | |
167 | |
164 | # this coroutine is necessary because a coroutine |
168 | # this coroutine is necessary because a coroutine |
165 | # cannot destroy itself. |
169 | # cannot destroy itself. |
166 | my @destroy; |
170 | my @destroy; |