Executing a function with a timeout

前端 未结 6 735
醉梦人生
醉梦人生 2020-12-14 19:30

What would be an idiomatic way of executing a function within a time limit? Something like,

(with-timeout 5000
 (do-somthing))

Unless do-so

6条回答
提交回复
热议问题