Discover Packages
github.com/ChrisALiles/bank
package
module
Version:
v0.0.0-...-5ab0d4e
Opens a new window with list of versions in this module.
Published: Feb 15, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Bank was meant to set a concurrency design challenge.
As it turned out, locking and contention were quite
easily avoided by judicious placement of data on
the channels.
Datagen generates and routes the transactions.
Start the processing, wait for it to finish, and send
the results via channel to the driver program.
func Teller(work chan txn)
The teller has the task of updating the customerr balance.
Result describes the final data.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.