腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
将
F#
Async
<
Async
<
MyTpe
>[]>转
换为
Async
<
MyType
>[]
asynchronous
、
f#
、
expecto
但我需要在 testCaseAsync : string ->
Async
<unit> -> Test中使用这些数据。所以,我的目标是得到一个像So
Async
<Item>[]这样的签名//
Async
<
Async
<Item>[]>
async
{ let!table = API.get
浏览 14
提问于2017-06-30
得票数 1
回答已采纳
1
回答
c#中的http客户端发布异步
asynchronous
、
f#
、
httpclient
、
c#-to-f#
我看过这个在
F#
中做一个post请求,但是我想知道如何使用异步post请求来做同样的事情 new() = {} member this.RequestToken
浏览 0
提问于2018-03-08
得票数 2
回答已采纳
4
回答
如何在普通任务(不是Task<T>)上执行
Async
.AwaitTask?
f#
、
async-await
我正在尝试使用
F#
中的C#库。该库大量使用
async
/await。我想在
F#
的
async
{ ... }工作流程中使用。我看到我们可以对返回Task<T>的异步C#方法执行
Async
.AwaitTask操作,但是那些返回普通Task的方法又如何呢 也许,有没有一个帮助器可以将它们转
换为
Async
<unit>,或者
将
Task转
换为
Task<unit>,以便它可以与
Async
浏览 1
提问于2011-11-06
得票数 38
回答已采纳
2
回答
将
async
.parallel转
换为
async
.auto
node.js
、
express
、
async.js
我有一个带有两个函数的
async
.parallel,现在我需要转
换为
async
.auto或
async
.waterfall,因为我需要将一个值从第一个函数传递到第二个函数。有谁可以帮我?router.get('/:machineID', function(req, res, next) { var machineID = req.params.machineI
浏览 2
提问于2017-04-27
得票数 0
回答已采纳
1
回答
在
F#
JS代码中通过Ajax使用来自FunScript主机的类型
f#
、
funscript
根据Alfanso的答案编辑了解决方案:let start () = Globals.window.alert( (sprintf "%A" data) ) |>
Async
.StartImmediate我错过的是 req.
浏览 1
提问于2014-11-16
得票数 1
回答已采纳
1
回答
.Core应用程序中PasswordSignInAsync挂起
.net
、
f#
、
asp.net-core
、
asp.net-identity
我正在用
F#
构建一个.NET核心web应用程序,并尝试设置身份。|>
Async
.RunSynchronously signInManager.SignInAsync(user, isPersistent = false) |>
Async
.AwaitTask |>
Async
.RunSynchronously elsesignInManager.PasswordSi
浏览 0
提问于2016-12-11
得票数 10
1
回答
调用返回任务的C#方法
f#
postgres;Password=123456;Database=postgres")); store.CreateSchemaIfNotExists() |>
Async
.AwaitTask
浏览 4
提问于2020-12-09
得票数 0
回答已采纳
2
回答
如何在C#中创建
F#
样式异步成员?
f#
、
c#-to-f#
在C#中,可以使用
async
对方法进行注释,如下所示:{ { }type Foo () = () 该解决方案必须
浏览 2
提问于2020-07-03
得票数 2
回答已采纳
1
回答
让我来!在seq {.}中不允许异步吗?
c#
、
f#
我正在尝试将以下C#代码转
换为
F#
。static
async
Task<IEnumerable<string>> ListingObjectsAsync() ListObjectsV2Request request = newresponse = client.ListObjectsV2
Async
(request) |>
Async
.AwaitTask
浏览 0
提问于2018-08-30
得票数 3
回答已采纳
1
回答
如何在
F#
中定义owin中间件类?
f#
、
owin
我正在尝试在
F#
中创建下面的示例类(取自
F#
)。LoggingMiddleware(Func<IDictionary<string, object>, Task> next) this.next = next; Console.WriteLine("End Request");} 但是,我很难在典型的.NET类型和典型的
F#
浏览 3
提问于2014-10-23
得票数 2
回答已采纳
1
回答
如何在Xamarin应用程序的后台调用异步方法
c#
、
xamarin
、
lambda
、
xamarin.forms
static Task <
Mytype
> myMethod()
MyType
myType
; 当我
将
async
添加到我的方法中时,如下所示我收到此错误 The 'await' operator canonly b
浏览 15
提问于2017-08-17
得票数 0
回答已采纳
1
回答
什么是
F#
异步工作流的Scala等价物?
scala
、
f#
、
async-workflow
什么是
F#
异步工作流的Scala等价物? ]
async
ex -> printfn "%s" (ex.Message); urlList |&
浏览 2
提问于2011-04-07
得票数 15
4
回答
从C#引用异步
F#
数据类型
c#
、
asynchronous
、
f#
我创建了一个返回此数据类型的
F#
库如何访问FSharpAsync类型,以便枚举C#中的元组并打印出内容
浏览 1
提问于2011-07-25
得票数 14
回答已采纳
1
回答
Xamarin
F#
to C#异步呼叫:正确的现代方式
xamarin
、
f#
、
c#-to-f#
、
f#-async
我正在尝试用Xamarin从
F#
代码中同步调用C#异步函数。= null) let inline AwaitPlainTask (task: Task)= |>
Async
.AwaitTask 以下代码:
async
{ let!在AwaitPlainTask之后,
F#
浏览 17
提问于2019-12-15
得票数 0
回答已采纳
1
回答
对代理进行单元测试
unit-testing
、
f#
、
mailboxprocessor
我正在尝试在
F#
中测试MailboxProcessor。我想测试我给出的函数f在发布消息时是否实际执行。 let agent = Agent<'a>.Start(fun inbox -> member this.Post(msg:'a)
浏览 7
提问于2017-01-15
得票数 8
回答已采纳
2
回答
使用C#异步模型的
F#
异步λ互操作
c#
、
asynchronous
、
f#
、
pulumi
我有这样一段代码(C#,Pulumi),我想把它翻译成
F#
: var registryInfo = repo.RegistryId.Apply(
async
(id) => }; }); 到目前为止,我所做的是: let registryInfo = repo.RegistryId.Apply (fun id ->
async
Server = input creds.ProxyEndpoint, Username= input parts.[0], Pa
浏览 34
提问于2021-07-23
得票数 2
回答已采纳
1
回答
类型记录:为什么在异步函数中的对象中PromiseLike是一种可能的类型?
typescript
const createObject =
async
(): Promise<
MyType
> => { return { await this.bar(); }, await Promise.resolve(); // do somethin
浏览 4
提问于2020-12-13
得票数 3
回答已采纳
2
回答
如何在使用C#时忽略
F#
?
.net-core
、
f#
、
async-await
stringlet main argv =
async
result = bus.PubSub.PublishAsync({Text = "text"}) |>
Async
.AwaitTask 0 知道PublishAsync返回Taskresult = bus.PubSub.PublishAsync({Text = "t
浏览 1
提问于2019-05-11
得票数 1
回答已采纳
1
回答
为什么此异步
F#
代码未按预期终止?
f#
module
Async
= let!child =
Async
.StartChild (action, timeout) } printfn "Started... " do!
Async
.forever
浏览 8
提问于2021-09-17
得票数 2
1
回答
如何在
F#
中对异步方法进行单元测试?
unit-testing
、
asynchronous
、
f#
、
nunit
我有一个方法,它返回一个我试图在
F#
中同步测试的任务。下面是这个方法,它是一个C#接口的实现: member this.RunAsync(): System.Threading.Tasks.Task = // and I've tried
async
{logFileMana
浏览 17
提问于2019-01-31
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券