Skip to content

Commit a2aeb2c

Browse files
alex-ozdemirdavidbarsky
authored andcommitted
Wrote Minimal Documentation for the Lambda Macro (#71)
1 parent 6f693fb commit a2aeb2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lambda-runtime/src/runtime.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ where
4545
}
4646

4747
#[macro_export]
48+
/// Starts an event listener which will parse incoming events into the even type requested by
49+
/// `handler` and will invoke `handler` on each incoming event. Can optionally be passed a Tokio
50+
/// `runtime` to build the listener on. If none is provided, it creates its own.
4851
macro_rules! lambda {
4952
($handler:ident) => {
5053
$crate::start($handler, None)

0 commit comments

Comments
 (0)