-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose bump allocator in
Sender
(#65)
This PR removes the `'static` requirement from `Sender::send` and `Sender::send_to` and exposes the bump allocator by providing allocation methods on `Sender`. `Sender` is now entirely internally mutable (takes `&self` on all the methods). This partially addresses #44 but is missing a few things. - Doesn't allow received events with borrowed data to pass though `Sender::send` without a clone because `Receiver` and `Sender` have different lifetimes. Might still need a combined `Sender` and `Receiver` type. - Can't use the bump allocator from a `&mut World`. - No optional `collections` module. I think it would be easier to just add an unstable feature for the unstable allocator api for those who need it.
- Loading branch information
Showing
7 changed files
with
297 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.