Here is a complete example showing how to write a call to an asynchronous Chilkat method in .NET Core. (Note: This is .NET Core, not .NET Framework.) This example uses the TaskCompleted callback to get notified when the task completes.
I often get this question: “I’m calling the method XYZ and the UI freezes until the method returns.”. For example: “I’m trying to upload a file in FTP. I’m trying the examples of the site but the screen remains locked until the end of the upload. It’s very important that while I’m uploading a file in ftp I can […]
Event callbacks in Java (including Android) are supported starting in v188.8.131.52. To receive event callbacks, first create a Java class derived from one of the Chilkat event callback classes. The event callback classes are: CkBaseProgress, CkHttpProgress, CkZipProgress, CkFtp2Progress, CkMailManProgress, CkTarProgress, and CkSFtpProgress. All future Chilkat classes will only use CkBaseProgress. Theses event callback classes will be documented in the “Events” […]
Demonstrates a TaskCompleted event for an asynchronous Chilkat method call. The event callback occurs in the background thread, and therefore any updates to the UI must happen on the UI thread. For this reason, MethodInvoker is used to make updates to a TextBox..
This sample C# snippet demonstrates how to use the TaskCompleted event to be notified when an asynchronous method completes. Given that the event callback is in the background thread, any UI updates must occur on the main thread. This example demonstrates how to do it:
Starting in Chilkat v184.108.40.206, asynchronous capability is added across all classes and all programming languages. The new Task and TaskChain classes have been added. To Beta test, send email to firstname.lastname@example.org. Please specify the programming language, operating system, etc. that is needed. The online reference documentation has been updated. Examples will be forthcoming. Version 220.127.116.11 will be released later this […]
Chilkat v9.3.0 for Cocoa now includes the asynchronous functionality and event callback functionality that has been available in the C++ libs. Asynchronous methods run in a background thread such that the call immediately returns to the application. Events are not fired w/ asynchronous method calls — your app would periodically check to see if the background task is finished. To […]
Notice: The functionality described here is deprecated and replaced by a newer model for asynchronous method calls. The newer model was introduced in Chilkat v18.104.22.168, and is identified by methods having names ending in “Async” which return a task object. The Chilkat HTTP component has a set of methods and properties that allow already-existing methods to be called asynchronously. For […]
Notice: The functionality described here is deprecated and replaced by a newer model for asynchronous method calls. The newer model was introduced in Chilkat v22.214.171.124, and is identified by methods having names ending in “Async” which return a task object. The following example demonstrates the older, deprecated asynchronous HTTP functionality that allows for any HTTP method to be run asynchronously […]