Class caveTransaction
Defined in: cave.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
caveTransaction(name, doneCallback)
Create a new caveTransaction object.
|
Class Detail
caveTransaction(name, doneCallback)
Create a new caveTransaction object.
You should not call this directly, but rather use the beginTransaction function,
which also inserts the caveTransacrtion object into a list of current transactions.
See also the overview and examples.
- Parameters:
- {string} name
- unique transaction name from the client-side. This is used as a key into the list of waiting transactions, for associating requests with replies.
- {function} doneCallback
- the function to call when a reply comes in for this transaction.