首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Swift-开源分析

    Continuation - 连接异步任务和同步代码

    continuations 上,异步任务可以挂起自身,同步代码能够捕获并调用 continuations 来恢复任务,响应事件。 Swift-evolution 关键点时间线: 结构化并发 Continuations for interfacing async tasks with synchronous code 动机 Swift Checked continuations Unsafe*Continuation为连接同步和异步代码提供了一种轻量机制,但它容易误用,误用会以危险的方法破坏处理状态。 其他例子 Continuations 也能用来与事件驱动接口交互,这些接口比 callback 更复杂。 增加"未来方向"小节讨论一个可能的更高级 API,该 API 允许 continuations 在知道正确的调度队列时直接恢复其任务。 在返回Continuation类型上增加resume()。

    2.9K10编辑于 2022-01-23
  • 来自专栏罗西的思考

    [源码解析] PyTorch 分布式 Autograd (5) ---- 引擎(上)

    This ensures all GPU // to CPU continuations are enqueued on this thread. global_cpu_thread_.detach(); // detach之后就独立运行了 } 2.3.3 GPU to CPU continuations 以下是 GPU to CPU continuations 为了执行GPU任务的延续(continuations),所以需要初始化一个单独的CPU线程来处理。分布式引擎的多线程结构仅适用于CPU任务。 这确保所有GPU到CPU的延续(continuations)都在此线程上排队。 This ensures all GPU to CPU continuations are enqueued on this thread.

    72420编辑于 2021-12-06
  • 来自专栏芋道源码1024

    一个故事讲清楚 NIO

    jetty Continuations 就实现了上述异步方式,有兴趣的同学可以去尝试下(http://wiki.eclipse.org/Jetty/Feature/Continuations)。

    30530发布于 2019-11-04
  • 来自专栏微信公众号:Java团长

    一个故事讲清楚 NIO

    jetty Continuations 就实现了上述异步方式,有兴趣的同学可以去尝试下(http://wiki.eclipse.org/Jetty/Feature/Continuations)。

    42020发布于 2019-11-10
  • 来自专栏微信公众号:Java团长

    一个故事讲清楚NIO

    jetty Continuations 就实现了上述异步方式,有兴趣的同学可以去尝试下(http://wiki.eclipse.org/Jetty/Feature/Continuations)。

    37540发布于 2019-06-26
  • 来自专栏全栈程序员必看

    三期_day12_其它+jetty的使用

    jetty的continuations在短连接上不见得有非常大的优势,可是在长连接或者在后台訪问IO资源(数据库,网络等)造成的 servlet响应慢问题上。 continuations的引入能用非常少的线程处理大量的请求。 Jetty 能够作为嵌入式server使用,Jetty的执行速度较快。

    33410编辑于 2022-07-10
  • 来自专栏java思维导图

    一个故事讲清楚NIO

    jetty Continuations 就实现了上述异步方式,有兴趣的同学可以去尝试下(http://wiki.eclipse.org/Jetty/Feature/Continuations)。   

    37410发布于 2018-12-27
  • 来自专栏程序猿DD

    通过这个故事理解啥是 NIO

    jetty Continuations 就实现了上述异步方式,有兴趣的同学可以去尝试下(http://wiki.eclipse.org/Jetty/Feature/Continuations)。

    22610编辑于 2023-04-17
  • 来自专栏云计算linux

    JAVA16版本.JDK16关于TCP和UDP的优化

    虚拟线程是用continuations实现的,但这只是一个细节。重要的是JDK中的所有阻塞调用(停车场锁支架()等)已修改为屈服而不是阻塞。

    16510编辑于 2024-12-19
  • 来自专栏salesforce零基础学习

    Salesforce LWC学习(十四) Continuation进行异步callout获取数据

    本篇参考: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_continuations

    1.3K20发布于 2020-04-01
  • 来自专栏码匠的流水账

    聊聊artemis的confirmationWindowEnabled

    , that for a large message, the encode size only includes the properties + headers // Not the continuations but this is ok since we are only interested in limiting the amount of // data in *memory* and continuations

    75830发布于 2020-02-24
  • 来自专栏码匠的流水账

    聊聊artemis的confirmationWindowEnabled

    , that for a large message, the encode size only includes the properties + headers // Not the continuations but this is ok since we are only interested in limiting the amount of // data in *memory* and continuations

    78400发布于 2020-01-23
  • 来自专栏零域Blog

    「SF-PLF」13 References

    files, displays, or network connections; make non-local transfers of control via exceptions, jumps, or continuations

    37820编辑于 2022-03-02
  • 来自专栏京程一灯

    使用 ES6 来为异步函数记录执行时间

    timeIt 包含两个延续(continuations)(report 和 callback)。

    1.3K20发布于 2019-03-28
  • 来自专栏.NET开发那点事

    Async方法死锁的问题 Don't Block on Async Code(转)

    The Async/Await FAQ goes into detail on exactly when contexts are captured and used for continuations

    69500发布于 2018-07-31
  • 来自专栏Bug生活2048

    .net core下定时任务的实现

    , Cron.Daily); 延续性任务执行(Continuations) 延续性任务类似于.NET中的Task,可以在第一个任务执行完之后紧接着再次执行另外的任务: BackgroundJob.ContinueWith

    1.6K10发布于 2018-08-31
  • 来自专栏python3

    python使用pika操作rabbitmq

    The same goes for greenlets, callbacks, continuations, and generators.  

    3.1K20发布于 2020-03-27
  • 来自专栏Windows技术交流

    微软抓包工具network monitor (nmcap)简单使用

    BROWSER) /File NoNoise.cap Example 3:This example starts capturing network frames that are TCP Continuations

    2.2K10编辑于 2024-11-11
  • 来自专栏深度学习与python

    Java 18 正式发布:默认字符集 UTF-8,附带简易 HTTP 服务器,弃用 Finalization

    这将通过虚拟线程、定界延续(delimited continuations)和尾调用来实现。

    56710编辑于 2022-04-19
  • 来自专栏ShowMeAI研究中心

    斯坦福NLP课程 | 第14讲 - Transformers自注意力与生成模型

    相对自注意力音乐生成 [相对自注意力音乐生成] 8.1 音乐和语言的原始表征 [音乐和语言的原始表征] 8.2 音乐语言模型 [音乐语言模型] 传统的 RNN 模型需要将长序列嵌入到固定长度的向量中 8.3 Continuations to given initial motif [Continuations to given initial motif] 8.4 音乐自相似度 [Self-Similarity in Music]

    88032编辑于 2022-05-16
领券