Concurrency (using goroutine and go channel) can cause non-deterministic behavior in fabric.
I have not found any source or example on the use of Goroutines and go channels in fabric contracts; I need an example; Are there any links that I can read about it?.
I know that it is better not to use the following code, but I want to know how the race condition that is in the code causes inconsistency among peers.
package main import (
go writeToLedger(stub, “data1”)
go writeToLedger(stub, “data2”)