相关疑难解决方法(0)

等待akka.net actor {}表达式中的F#异步任务

是否可以在Akka.Net actor计算中的Async <'t>上等待(不阻塞)?我想实现类似以下的东西.

actor {
  let! msg = mailbox.Receive()
  match msg with
  | Foo ->
    let! x = async.Return "testing 123" // Some async function, return just an example
    () // Do something with result
}
Run Code Online (Sandbox Code Playgroud)

f# akka.net

5
推荐指数
1
解决办法
1000
查看次数

标签 统计

akka.net ×1

f# ×1