Skip to content

Commit

Permalink
updating README of task package
Browse files Browse the repository at this point in the history
  • Loading branch information
saniales committed Aug 22, 2017
1 parent 1e7d9e9 commit 5e1f7f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions task/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ This package allows to easily wrap procedures with messages, execute them in par
----
// Execute executes the task at the specified level of verbosity.
func (tw *TaskWrapper) Execute(verbosity int) task.Result
----

[source, go]
----
// CreateSequence creates a sequence of tasks, specifying the verbosity level and a bool array indicating wether ignore or
// signal error details.
func CreateSequence(tasks []task.Wrapper, ignoreOnFail []bool, verbosity int) task.Sequence
----

[source, go]
----
// ExecuteParallel executes a set of Wrappers in parallel, handling concurrency for results.
func ExecuteParallel(tasks []task.Wrapper, verbosity int) []task.Result
----
Expand Down

0 comments on commit 5e1f7f4

Please sign in to comment.