You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Yield Deferred until we have a value to evaluate, then evaluate it
534
-
whileletSome(current) = prop_stream.next().await{
535
-
debug!(?i, ?current,"Defer");
537
+
// Build an output stream for dynamic of x over the subcontext
538
+
Box::pin(stream!{
539
+
whileletSome(current) = eval_stream.next().await{
536
540
match current {
537
-
PartialStreamValue::Known(defer_s) => {
538
-
// We have a string to evaluate so do so
539
-
let expr = Parser::parse(&mut defer_s.as_ref())
540
-
.expect("Invalid dynamic str");
541
-
// Create a typed version of the expression
542
-
letmut type_info_local = type_info.clone();
543
-
let expr = (expr,StreamTypeAscription::Ascribed(T::stream_data_type())).type_check(&mut type_info_local)
544
-
.expect("Type error");
545
-
let untyped_eval_output_stream:OutputStream<Value> = <TypedUntimedLolaSemantics::<Parser> asMonitoringSemantics<AC>>::to_async_stream(expr,&subcontext);
// let mut subcontext = ctx.subcontext(history_length);
599
+
// let type_info = type_info.clone();
600
+
// Box::pin(stream! {
601
+
// let mut eval_output_stream: Option<OutputStream<PartialStreamValue<T>>> = None;
602
+
// let mut i = 0;
603
+
// let mut prev_received_deferred = false;
604
+
//
605
+
// // Yield Deferred until we have a value to evaluate, then evaluate it
606
+
// while let Some(current) = prop_stream.next().await {
607
+
// debug!(?i, ?current, "Defer");
608
+
// match current {
609
+
// PartialStreamValue::Known(defer_s) => {
610
+
// // We have a string to evaluate so do so
611
+
// let expr = Parser::parse(&mut defer_s.as_ref())
612
+
// .expect("Invalid dynamic str");
613
+
// // Create a typed version of the expression
614
+
// let mut type_info_local = type_info.clone();
615
+
// let expr = (expr, StreamTypeAscription::Ascribed(T::stream_data_type())).type_check(&mut type_info_local)
616
+
// .expect("Type error");
617
+
// let untyped_eval_output_stream: OutputStream<Value> = <TypedUntimedLolaSemantics::<Parser> as MonitoringSemantics<AC>>::to_async_stream(expr, &subcontext);
0 commit comments