Results 1 to 5 of 5

Thread: asynchronous calls

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,933

    asynchronous calls

    if I have, say, 20 tasks I want to run asynchronously, what are my options?

    I know that timers run in their own process: so do I pop a timer up for each process?

    Are there other options?

    thanks,

    Hank

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,726
    What sort of tasks? Give me an example.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,933
    Quote Originally Posted by barrymavin View Post
    What sort of tasks? Give me an example.
    The reference USE CASE is: create a hash of the xml of the schema of each of 650 tables.

    thanks,

    Hank

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,726
    Is that a once off operation?

    i would not recommend doing that on a timer event as it will make the UI unresponsive.

    on windows you can run background batch jobs. I have not yet made this available on Linux but can do in a point release. This is called lianjaRunScript which can be run as a background task (cron job on Linux).

    alternatively you can use Lianja.spawnApp() and give it a Lianja/VFP script file name. That will run concurrently and not affect the UI thread.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,933
    Lianja.spawnapp() looks like just the ticket! I thought I remembered there being something, but couldn't dredge it up from the remains of my memory.

    thanks,

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us