https://github.com/7sharp9/objectpool
https://github.com/7sharp9/objectpool
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/7sharp9/objectpool
- Owner: 7sharp9
- Created: 2011-06-04T15:48:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-03T23:48:22.000Z (over 14 years ago)
- Last Synced: 2025-02-09T12:16:09.789Z (about 1 year ago)
- Language: F#
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme
Awesome Lists containing this project
README
This is a simple implementation of an object pool using an agent (MailboxProcessor).
The pool is created with an initial number of objects using the specified generator.
The ObjectPool has three functions:
Put: An item can be 'Put' into the pool.
Get: An item can be taken from the pool.
ToListAndClear: A list of all the items in the pool is returned and the pool is cleared.