Skip to content

Commit

Permalink
add warning in objectpool
Browse files Browse the repository at this point in the history
  • Loading branch information
itn3000 authored Nov 25, 2019
1 parent ef34db5 commit 98c6de2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ finally
}
```

**WARNING: You must call `SetLength(0)` at first, and call `Return(stm)` in the end for preventing memory leak.**
#### WARNING

* **You must call `SetLength(0)` at first, and call `Return(stm)` in the end for preventing memory leak.**
* **`PooledMemoryStream` is not threadsafe, so you must not share instance across threads**

# Micro benchmark result(powered by [BenchmarkDotNet](http://benchmarkdotnet.org/))

Expand Down

0 comments on commit 98c6de2

Please sign in to comment.