Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
libraries
Import Process Effects Registry
Commits
a799c630
Unverified
Commit
a799c630
authored
Aug 28, 2020
by
Sebastian Schüpbach
Browse files
fix example code in README
parent
61599fc9
Pipeline
#13391
passed with stages
in 6 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a799c630
...
...
@@ -20,8 +20,8 @@ val inputTopic = ...
// `inputTopic` is the name of the topic where the maintenance message are
stored
;
props
is
a
variable
containing
properties
for
the
Kafka
consumer
val
registry
=
EffectsRegistry
()
val
shutdownEffect
=
Effect
(
"shutdown"
,
()
=>
sys
.
exit
(
0
),
"shuts down
application"
)
val
shutdownEffect
=
Effect
(
"shutdown"
,
()
=>
sys
.
exit
(
0
),
Some
(
"shuts down
application"
)
)
// the `register` method takes a message matcher as well as an instance of the
`Effect`
case
class
registry
.
register
(
ShutdownMessage
,
shutdownEffect
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment