Skip to content

Commit

Permalink
Callback handling+dispatching,docs,general cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emily33901 committed Jul 21, 2020
1 parent 0e95f21 commit dc99f80
Show file tree
Hide file tree
Showing 14 changed files with 689 additions and 147 deletions.
122 changes: 61 additions & 61 deletions alanguage.v

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions callback.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module vapor

// TODO maybe move to its own module

// Callback represents all the possible callbacks
pub type Callback =
ConnectedCallback | DisconnectedCallback |

LoggedOnCallback | LoggedOffCallback

// CallbackHandler lets types handle callbacks
pub interface CallbackHandler {
handle_callback(cb Callback)?
}
1 change: 1 addition & 0 deletions docs/doc.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/doc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/normalize.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc99f80

Please sign in to comment.