使用Simple.Odata.Client,我对GET请求进行批处理,并将这些请求的结果添加到列表中。(var id in ids) batch += async c => results.Add(awaitc.For<Thing>().Key(id).FindEntryAsync()); }
await batch.ExecuteAsyn
:5: RuntimeWarning: coroutine 'sleep' was never awaited这是因为在wait_n中,我们调用了没有await的asyncio.sleep= asyncio.get_event_loop()这一次我们使用的是lambda,令人惊讶的是,即使没有await,代码也能正常