Git Product home page Git Product logo

asnycdelegate's Introduction

C#异步编程模式

.net framework支持异步调用方法,BeginInvoke 和EndInvoke是委托自动生成的方法

BeginInvoke启用异步调用,该方法有与异步执行的方法相同的参数,另外还有两个可选参数

第一个参数是AsyncCallback委托,该委托引用在异步调用完成时要调用的方法

第二个参数是用户自定义的对象,该对象将信息传递给回调方法

BeginInvoke返回一个IAsyncResult,后者可用于监视异步调用的进度

EndIvoke(IAsyncResult)阻塞调用线程,直到异步调用结束

asnycdelegate's People

Contributors

nongmayisheng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.