Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asynchronous AsyncSeq未在交互模式下打印到控制台_Asynchronous_F#_F# Interactive - Fatal编程技术网

Asynchronous AsyncSeq未在交互模式下打印到控制台

Asynchronous AsyncSeq未在交互模式下打印到控制台,asynchronous,f#,f#-interactive,Asynchronous,F#,F# Interactive,我定义了一个简单的记录类型 type RowSapPL = { CargoID: int; Currency: string; IsInternal: bool; Amount: decimal} 从db的角度来看,一切正常(我在表中看到了预期的记录),但我无法在Visual Studio中的F#Interactive控制台中读取操作的消息(“***ok…”)。 我还尝试了AsyncSeq.iter而不是AsyncSeq.iterAsync和操作的同步版本。 我错过了什么?只有“启动异步序列”

我定义了一个简单的记录类型

type RowSapPL = { CargoID: int; Currency: string; IsInternal: bool; Amount: decimal}
从db的角度来看,一切正常(我在表中看到了预期的记录),但我无法在Visual Studio中的F#Interactive控制台中读取
操作的消息(
“***ok…”
)。 我还尝试了
AsyncSeq.iter
而不是
AsyncSeq.iterAsync
操作的同步版本。

我错过了什么?只有
“启动异步序列”
“异步序列结束”
和sql日志记录(来自一个平凡的
SqlQueryEvent |>事件。添加上面未显示的
)从异步计算表达式打印。

我必须在我的
asyncSeq
函数中使用
yield
而不是
return
,以清空和插入表中的行