A berth is a designated location in a port or harbour used for mooring vessels when they are not at sea. Berths provide a vertical front which allows safe and secure mooring that can then facilitate the unloading or loading of cargo or people from vessels. 1 Locations in a Port.
Asynchronous Callbacks. Delegates can also be used as CallBacks. CallBacks are used in many Windows API calls. You pass in a function pointer to the API call. When the API call gets finished with it's job, it then âcalls backâ to the function via the function pointer you passed it. This allows your code to know when the API call is done.
Wednesday, August 29, 2012. The C# keyword async allows one to write synchronous-looking asynchronous code. While very convenient, sometimes there are non-obvious pitfalls. Suppose in an async method, we want to await something while holding a lock. An example might be a critical section where two network requests should never be made concurrently. The following results in a compile-time error because you cannot use await inside a lock block: lock (foo) { await Task.Delay(1); }.