hundreds-breakfast-49010
11/18/2019, 11:48 PM@rule
throws an exception, how will the engine become aware of that?aloof-angle-91616
11/18/2019, 11:50 PMyield
) and it raises an exception, extern_generator_send()
will capture it in except Exception as e
aloof-angle-91616
11/18/2019, 11:50 PMPyGeneratorResponse::Throw
hundreds-breakfast-49010
11/18/2019, 11:50 PMhundreds-breakfast-49010
11/18/2019, 11:50 PMaloof-angle-91616
11/18/2019, 11:50 PMhundreds-breakfast-49010
11/18/2019, 11:51 PMPyGeneratorResponse
is handled in the enginealoof-angle-91616
11/18/2019, 11:51 PMextern_generator_send()
is in native.py
aloof-angle-91616
11/18/2019, 11:52 PM<http://nodes.rs|nodes.rs>
stillhundreds-breakfast-49010
11/18/2019, 11:52 PMHandle
in PyGeneratorResponse::Throw(Handle)
is the python exception object, right?aloof-angle-91616
11/18/2019, 11:52 PMaloof-angle-91616
11/18/2019, 11:52 PMnative.py
to see how it's constructedaloof-angle-91616
11/18/2019, 11:52 PMhundreds-breakfast-49010
11/18/2019, 11:53 PMhundreds-breakfast-49010
11/18/2019, 11:53 PM@rule
throws an exception, that means that generator_send
returns an Err
aloof-angle-91616
11/18/2019, 11:53 PMaloof-angle-91616
11/18/2019, 11:53 PM@rule
function produces a value or a generatoraloof-angle-91616
11/18/2019, 11:54 PMgenerator_send()
Err i think propagates into the Task::run() -> NodeFuture<Value>
resulthundreds-breakfast-49010
11/18/2019, 11:54 PMaloof-angle-91616
11/18/2019, 11:54 PMhundreds-breakfast-49010
11/18/2019, 11:55 PMTask::run()
NodeFuture
can failaloof-angle-91616
11/18/2019, 11:55 PMaloof-angle-91616
11/18/2019, 11:55 PMaloof-angle-91616
11/18/2019, 11:55 PMhundreds-breakfast-49010
11/18/2019, 11:56 PMaloof-angle-91616
11/18/2019, 11:56 PMaloof-angle-91616
11/18/2019, 11:56 PMhundreds-breakfast-49010
11/18/2019, 11:56 PMhundreds-breakfast-49010
11/18/2019, 11:57 PMhundreds-breakfast-49010
11/18/2019, 11:57 PMaloof-angle-91616
11/18/2019, 11:58 PMaloof-angle-91616
11/18/2019, 11:58 PMhundreds-breakfast-49010
11/18/2019, 11:58 PMcomplete
on graph/src/lib.rs
or graph/src/entry.rs
?aloof-angle-91616
11/18/2019, 11:58 PMaloof-angle-91616
11/18/2019, 11:59 PMaloof-angle-91616
11/19/2019, 12:00 AMpub(crate) fn clear()
seems like the right method to use herealoof-angle-91616
11/19/2019, 12:00 AM