Skip to content

Releases: mhogomchungu/tasks

1.2.6

14 Aug 06:49
Compare
Choose a tag to compare

changelog

- Remove a bug that caused infinite recursion on Visual Studio when trying to
   compose a future with multiple tasks.
- Improve the API that assembles tasks and and their continuations before 
  passing them on to run API.

1.2.5

27 Apr 21:19
Compare
Choose a tag to compare
changelog:
-- Add ability to set all options in the Task::process:result 
class through through its constructor

1.2.4

30 Jan 13:41
Compare
Choose a tag to compare
Changelog:

- Make the library installable. The preferred way to use the library is to 
  include the header file with the rest of the project that has this library 
  as a dependency.

- Some distributions do not like bundled dependencies and now they 
  can easily package it to make it available in their repositories. The argument 
  to pass to cmake to make an installable package is:
  "-DMCHUNGU_TASK_INSTALL=true"

1.2.3

20 Jan 08:55
Compare
Choose a tag to compare
The returned type of a task is no longer required to be specified since it 
can be deduced automatically.

Given a function prototype of:

int woof() ;

Previously, it was required to do something like:

Task::future<int>& foo = Task::run<int>( woof ) ;

Now, the above can simply be written as:

Task::future<int>& foo = Task::run( woof ) ; 

1.2.2

03 Jun 11:17
Compare
Choose a tag to compare
tagging version 1.2.2

1.2.1

28 Dec 08:57
Compare
Choose a tag to compare

changelog:

Add API that takes a lambda that requires arguments.

Documentation for the new API is below:


  • Example use cases on how to use lambda that requires an argument
    * ******************************************************************
/*
 * declaring "meaw" with an auto keyword will not be sufficient here
 * and the full std::function<blablabla> is required.
 *
 * For the same reason,just plugging in a lambda that requires arguments
 * into Task::run() will not be sufficent and the plugged in lambda must
 * be casted to std::function<blablabla> for it to compile.
 *
 * Why the above restriction? No idea but i suspect it has to do with
 * variadic template type deduction failing to see something.
 */

std::function< int( int ) > meaw = []( int x ){

    return x + 1 ;
} ;

Task::run( meaw,6 ).then( []( int r ){

    qDebug() << r ;
} ) ;

alternatively,

r = Task::await( meaw,6 ) ;

1.2.0

06 Oct 02:34
Compare
Choose a tag to compare

changelog:

change API and substitute "future_1" with "future

1.1.0

15 Aug 20:43
Compare
Choose a tag to compare

version 1.0.0 had only Task::run().then() API

This version adds Task::await() API