Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add callback function to picoev's raw callback mode that removes the file descriptor from the event loop.
Currently if you use the raw mode in picoev the file descriptor only gets removed from the event loop when a timeout occurs.
This pr also adds an example for picoev's raw mode.
🤖 Generated by Copilot at 6e57956
This pull request enhances the
picoev
module with a new option to remove file descriptors from the event loop. It also adds an example file to demonstrate the usage of this option and updates the testing module to skip this file.🤖 Generated by Copilot at 6e57956
examples/pico/raw_callback.v
that shows how to use theraw_cb
option of thepicoev
module (link, link)Config
struct of thepicoev
module to include a remove function as a third argument to theraw_cb
function type, allowing the user to control when to close the connection and free the resources (link, link)raw_cb
function in theaccept_cb
function of thepicoev
module, using thedel
method of thepicoev
instance (link)