major change to api, {incomplete, Next, Force} replaced by {incomplete, Next/1} where Next/1 accepts 'end_stream' to replicate what Force/1 used to do
This commit is contained in:
parent
1188f02d9f
commit
42a18cfcd9
5 changed files with 354 additions and 193 deletions
|
@ -58,5 +58,6 @@
|
|||
-type jsx_parser() :: fun((json()) -> jsx_parser_result()).
|
||||
|
||||
-type jsx_parser_result() :: {event, jsx_event(), fun(() -> jsx_parser_result())}
|
||||
| {incomplete, jsx_parser(), fun(() -> jsx_parser_result())}
|
||||
| {error, badjson}.
|
||||
| {incomplete, jsx_parser()}
|
||||
| {error, badjson}
|
||||
| ok.
|
Loading…
Add table
Add a link
Reference in a new issue