我只是没有得到延续! [英] I just don't get continuations!

查看:144
本文介绍了我只是没有得到延续!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我没有CS学位,我的背景是VB6 - > ASP - > ASP.NET / C# 。任何人都可以用简洁明了的方式解释它吗?解析方案

想象一下,如果程序中的每一行都是一个单独的函数。每个接受作为参数的下一行/函数来执行。

使用这个模型,你可以在任何线路上暂停执行,并在以后继续执行。你也可以做一些有创意的事情,比如暂时跳出执行堆栈来检索一个值,或者将当前的执行状态保存到数据库中以便稍后检索。


What are they and what are they good for?

I do not have a CS degree and my background is VB6 -> ASP -> ASP.NET/C#. Can anyone explain it in a clear and concise manner?

解决方案

Imagine if every single line in your program was a separate function. Each accepts, as a parameter, the next line/function to execute.

Using this model, you can "pause" execution at any line and continue it later. You can also do inventive things like temporarily hop up the execution stack to retrieve a value, or save the current execution state to a database to retrieve later.

这篇关于我只是没有得到延续!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆