SalimTerryLi 最近的时间轴更新
SalimTerryLi's repos on GitHub
C · 7 人关注
esp32_btstack_panu_example
A working example for esp32 bluetooth tethering on ESP-IDF framework with BTStack
C++ · 2 人关注
HugeProject
某项目
Python · 1 人关注
AirPi
Python coded flight control unit. Make RaspberryPi flies as quadcopter' s commander. Already wasted.
1 人关注
AirPi_PCB
Altium designer project file of AirPi HAT
C · 1 人关注
btstack
Dual-mode Bluetooth stack, with small memory footprint.
C · 1 人关注
esp-tapif
TAP interface implementation based on esp-netif
1 人关注
incubator-nuttx
Apache NuttX is a mature, real-time embedded operating system (RTOS)
1 人关注
incubator-nuttx-apps
Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
Shell · 1 人关注
makerTerminal
TBD
Makefile · 0 人关注
android_device_samsung_star2qltechn
Device tree for Samsung Galaxy S9+ (unlocked bootloader variant)
0 人关注
android_kernel_samsung_sdm845
S9/S9+/N9 kernel source
Python · 0 人关注
botoy
OPQ/IOTQQ/IOTBot的一个Python开发助手🐌
C · 0 人关注
cfbandwtest
Cloudflare IP bandwidth local testing tool
Cuda · 0 人关注
Cuda_cmake_example
Java · 0 人关注
db_homework
数据库作业
TeX · 0 人关注
Devguide
PX4 Devguide GitBook
0 人关注
drv_rover_base
小车底盘驱动...
0 人关注
DSView
An open source multi-function instrument for everyone
Java · 0 人关注
EdgeMinecraftCli
Designed for official Minecraft server released by mojang, aims to add more fascinating features.
0 人关注
esp-idf
Espressif IoT Development Framework. Official development framework for ESP32.
C++ · 0 人关注
Firmware
PX4 Autopilot Software
0 人关注
flathub
Repo contains pull requests towards flathub
Java · 0 人关注
GitHub_Counter_4_Class
github爬虫for dashark的高级语言课
Go · 0 人关注
GLuaPlayground
Gopher-LuaPlayground
C++ · 0 人关注
hello-world
C/C++编程初学者
0 人关注
libyuarel
Simple C library for parsing URLs with zero-copy and no mallocs.
C · 0 人关注
linenoise
A small self-contained alternative to readline and libedit
SalimTerryLi

SalimTerryLi

V2EX 第 667070 号会员,加入于 2023-12-14 23:14:16 +08:00
SalimTerryLi 最近回复了
134 天前
回复了 SalimTerryLi 创建的主题 反馈 对新用户的限制与风控
再议,这篇帖子我也没能发出来。需要 6hrs 等待。明早起床后再来点发送。

现在点击发送看到原因了,需要注册 14 天。我真的蚌埠住。
后面的发不出来了
一个大概的思路,非最优实现:

- 一个完整业务流程封装为一个 public async Task<Foo> async_work(){}函数
- var result = async_work().wait() 来启动并阻塞执行异步任务(或者不阻塞?不清楚 C#的控制流)
原理:嵌套的逻辑都依赖于上下文,但是这个上下文又具有一个特点:和栈一样,单方向由前置操作决定后续操作。所以我觉得应用有栈协程可以很好的处理这类业务逻辑。注,有栈/无栈协程在不同的定义下似乎存在歧义,我是指在协程内运行的业务代码拥有 per-coro 的栈。

新号发不了长的。就离谱
对付 callback hell 应该都可以上 coroutine/async 吧? C#是有协程支持的,但我不知道它的底层实现的代价,因为我不写 C#
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3003 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 13:32 · PVG 21:32 · LAX 06:32 · JFK 09:32
Developed with CodeLauncher
♥ Do have faith in what you're doing.