Commit b6025fc7 authored by h2b's avatar h2b

Some fine-tuning done.

parent 55eba7e3
......@@ -27,6 +27,7 @@ import scala.concurrent.Future
*/
trait FutureTracking {
@volatile
protected var future = Future.unit
/**
......@@ -35,10 +36,10 @@ trait FutureTracking {
* The returned value can be used if further operations need to be informed
* when some operation is completed (e.g., by setting a callback).
*
* @note When calling one or more methods of this instance multiple the result
* is unpredictable: you get the value that the last currently active operation left.
* In this case and also generally when an exception is returned further operations
* might still going on.
* @note When calling one or more methods of this instance concurrently, the
* result is not deterministic: you get the value that the last currently
* active operation left. In this case and also generally when an exception
* is returned, further operations might still going on.
*
* @return a future with no specific value indicating the completion of some
* operation
......
......@@ -20,6 +20,11 @@ package de.h2b.scala.lib.simgraf.shapes
/**
* This package provides parallel versions of some shapes.
*
* These shapes have the same interface as their sequential counterparts.
*
* By implementing the `FutureTracking` trait, some control is given when
* some concurrent operation is done.
*
* @since 1.1.0
* @author h2b
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment